setCanPedSelectAllWeapons
SET_CAN_PED_SELECT_ALL_WEAPONS0xEFF296097FF1E509The GTA V native SET_CAN_PED_SELECT_ALL_WEAPONS of the WEAPON namespace, as LS:MP client scripts call it: the global function setCanPedSelectAllWeapons, in JavaScript and in Lua.
setCanPedSelectAllWeapons(ped: Ped, toggle: boolean): voidsetCanPedSelectAllWeapons(ped: Ped, toggle: boolean)Usage
JavaScript
setCanPedSelectAllWeapons(ped, toggle);Lua
setCanPedSelectAllWeapons(ped, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
toggle | BOOL | boolean | boolean |
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.
Disable all weapons. Does the same as setCanPedSelectInventoryWeapon except for all weapons.
Reference
- Namespace
- Weapon WEAPON
- In the game
void SET_CAN_PED_SELECT_ALL_WEAPONS(Ped ped, BOOL toggle)- Hash
0xEFF296097FF1E509- Introduced
- Game build 1103 legacy numbering
- Formerly
_SET_CAN_PED_EQUIP_ALL_WEAPONS