WeaponClient

setPedDropsWeaponsWhenDead

SET_PED_DROPS_WEAPONS_WHEN_DEAD0x476AE72C1D19D1A8

The GTA V native SET_PED_DROPS_WEAPONS_WHEN_DEAD of the WEAPON namespace, as LS:MP client scripts call it: the global function setPedDropsWeaponsWhenDead, in JavaScript and in Lua.

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Weapon WEAPON
In the game
void SET_PED_DROPS_WEAPONS_WHEN_DEAD(Ped ped, BOOL toggle)
Hash
0x476AE72C1D19D1A8

Open in the interactive natives reference