resurrectPed
RESURRECT_PED0x71BC8E838B9C6035The GTA V native RESURRECT_PED of the PED namespace, as LS:MP client scripts call it: the global function resurrectPed, in JavaScript and in Lua.
resurrectPed(ped: Ped): voidresurrectPed(ped: Ped)Usage
resurrectPed(ped);resurrectPed(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
This function will simply bring the dead person back to life.
Try not to use it alone, since using this function alone, will make peds fall through ground in hell(well for the most of the times).
Instead, before calling this function, you may want to declare the position, where your Resurrected ped to be spawn at.(For instance, Around 2 floats of Player's current position.)
Also, disabling any assigned task immediately helped in the number of scenarios, where If you want peds to perform certain decided tasks.
Reference
- Namespace
- Ped PED
- In the game
void RESURRECT_PED(Ped ped)- Hash
0x71BC8E838B9C6035