PedClient

resurrectPed

RESURRECT_PED0x71BC8E838B9C6035

The 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.

SignatureJavaScript
resurrectPed(ped: Ped): void
SignatureLua
resurrectPed(ped: Ped)

Usage

JavaScript
resurrectPed(ped);
Lua
resurrectPed(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

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

Open in the interactive natives reference