PedClient

blockPedFromGeneratingDeadBodyEventsWhenDead

BLOCK_PED_FROM_GENERATING_DEAD_BODY_EVENTS_WHEN_DEAD0xE43A13C9E4CCCBCF

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void BLOCK_PED_FROM_GENERATING_DEAD_BODY_EVENTS_WHEN_DEAD(Ped ped, BOOL toggle)
Hash
0xE43A13C9E4CCCBCF
Formerly
_BLOCK_PED_DEAD_BODY_SHOCKING_EVENTS

Open in the interactive natives reference