Browse docs

Death Timeout

Reference for Death Timeout in ambulancejob.

All client exports

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 0 to stop the current timeout.
  • Arguments:
    • seconds (number): Duration in seconds.
exports["sky_ambulancejob"]:setDeathTimeout(120)

getDeathTimeout()

  • Purpose: Returns the current death timeout state.
  • Returns: table with active (boolean) and remaining (number, seconds).
local state = exports["sky_ambulancejob"]:getDeathTimeout()
if state.active then
    print("Timeout remaining: " .. state.remaining .. "s")
end