Browse docs
Death Timeout
Reference for Death Timeout in ambulancejob.
Death Timeout
stopDeathTimeout()
- Purpose: Immediately stops the active death timeout (combat lockout) for the local player.
exports["sky_ambulancejob"]:stopDeathTimeout()
setDeathTimeout(seconds)
- Purpose: Sets or overrides the death timeout duration. Pass
0to stop the current timeout. - Arguments:
seconds(number): Duration in seconds.
exports["sky_ambulancejob"]:setDeathTimeout(120)
getDeathTimeout()
- Purpose: Returns the current death timeout state.
- Returns:
tablewithactive(boolean) andremaining(number, seconds).
local state = exports["sky_ambulancejob"]:getDeathTimeout()
if state.active then
print("Timeout remaining: " .. state.remaining .. "s")
end