revivePlayer
TriggerEvent('RiP-Death:revivePlayer', died, reset)
This trigger revives a dead player and is also usable from server-side.
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
died | Boolean | No | Revive player |
reset | Boolean | No | Reset player |
Example
Client-Side
TriggerEvent('RiP-Death:revivePlayer', true, true)
Server-Side
local xPlayer = ESX.GetPlayerFromId(source)
TriggerClientEvent('RiP-Death:revivePlayer', xPlayer.source, true, false)