Browse docs
Death
Action hooks for the death and revive system.
Actions
| Action | Side | Description |
|---|---|---|
death:start | client | The player has died and the deathscreen opened. |
death:end | client | The player was revived or respawned and the deathscreen closed. |
death:voiceChanged | client | Voice mode changed due to death/revive. |
Context
death:start and death:end pass an empty context table {}.
death:voiceChanged passes:
| Key | Type | Description |
|---|---|---|
mode | string | Current 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