Skip to main content

revivePlayer

TriggerEvent('RiP-Death:revivePlayer', died, reset)

This trigger revives a dead player and is also usable from server-side.

Arguments

NameTypeOptionalExplenation
diedBooleanNoRevive player
resetBooleanNoReset 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)