PedClient

explodePedHead

EXPLODE_PED_HEAD0x2D05CED3A38D0F3A

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

SignatureJavaScript
explodePedHead(ped: Ped, weaponHash: Hash): void
SignatureLua
explodePedHead(ped: Ped, weaponHash: Hash)

Usage

JavaScript
explodePedHead(ped, weaponHash);
Lua
explodePedHead(ped, weaponHash)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
weaponHashHashnumberinteger

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.

Forces the ped to fall back and kills it.

It doesn't really explode the ped's head but it kills the ped

Reference

Namespace
Ped PED
In the game
void EXPLODE_PED_HEAD(Ped ped, Hash weaponHash)
Hash
0x2D05CED3A38D0F3A

Open in the interactive natives reference