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.

Context

Both actions pass an empty context table {}.

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)

Support

Need help? Our support team is always ready to assist

Join Discord