Browse docs

Death

Action hooks for the death and revive system.

Actions

ActionSideDescription
death:startclientThe player has died and the deathscreen opened.
death:endclientThe player was revived or respawned and the deathscreen closed.
death:voiceChangedclientVoice mode changed due to death/revive.

Context

death:start and death:end pass an empty context table {}.

death:voiceChanged passes:

KeyTypeDescription
modestringCurrent voice mode: "none" (fully disabled), "listen" (can hear, cannot talk), or "full" (fully active).

Example

client.lua
exports["sky_ambulancejob"]:onAction("death:start", function()
    exports["your_hud"]:hide()
end)

exports["sky_ambulancejob"]:onAction("death:end", function()
    exports["your_hud"]:show()
end)

exports["sky_ambulancejob"]:onAction("death:voiceChanged", function(context)
    print("Voice mode:", context.mode) -- "none", "listen", or "full"
end)

Support

Need help? Our support team is always ready to assist

Join Discord