setPedDropsWeaponsWhenDead
SET_PED_DROPS_WEAPONS_WHEN_DEAD0x476AE72C1D19D1A8The 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.
setPedDropsWeaponsWhenDead(ped: Ped, toggle: boolean): voidsetPedDropsWeaponsWhenDead(ped: Ped, toggle: boolean)Usage
JavaScript
setPedDropsWeaponsWhenDead(ped, toggle);Lua
setPedDropsWeaponsWhenDead(ped, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
toggle | BOOL | boolean | boolean |
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