PedClient

setPedGeneratesDeadBodyEvents

SET_PED_GENERATES_DEAD_BODY_EVENTS0x7FB17BA2E7DECA5B

The GTA V native SET_PED_GENERATES_DEAD_BODY_EVENTS of the PED namespace, as LS:MP client scripts call it: the global function setPedGeneratesDeadBodyEvents, in JavaScript and in Lua.

SignatureJavaScript
setPedGeneratesDeadBodyEvents(ped: Ped, toggle: boolean): void
SignatureLua
setPedGeneratesDeadBodyEvents(ped: Ped, toggle: boolean)

Usage

JavaScript
setPedGeneratesDeadBodyEvents(ped, toggle);
Lua
setPedGeneratesDeadBodyEvents(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_PED_GENERATES_DEAD_BODY_EVENTS(Ped ped, BOOL toggle)
Hash
0x7FB17BA2E7DECA5B

Open in the interactive natives reference