RX Scripts Logo
Death System

Events

All client- & serversided events included within this script. Events serve as listeners that capture and respond to actions executed by this script.
If additional events are required for your implementation, please submit a formal request through our ticketing system on the official Discord server.

Server Events

ds:onDeath

Triggered after a person died.

RegisterNetEvent('ds:onDeath', function(deathData) end)
deathData
table

Data about the death.

ds:onRevivePlayer

Triggered when a player is revived by another player.

RegisterNetEvent('ds:onRevivePlayer', function(reviverNetId, revivedNetId) end)
reviverNetId
number

Source of the player who revived another player.

revivedNetId
number

Source of the player who was revived.

Client Events

ds:onDowned

Triggered after a person has been downed.

RegisterNetEvent('ds:onDowned', function(deathData) end)
deathData
table

Data about the death.

ds:onDeath

Triggered after a person died.

RegisterNetEvent('ds:onDeath', function(deathData) end)
deathData
table

Data about the death.

ds:onSpawned

Triggered after a person has spawned.

RegisterNetEvent('ds:onSpawned', function(bedKey) end)
bedKey
number|string|nil

Key of the bed where the player spawned. If bedKey is nil, the player did not spawn in a bed.

ds:getRevived

Triggered after a player is being revived.

RegisterNetEvent('ds:getRevived', function() end)