WeaponClient

setCanPedSelectAllWeapons

SET_CAN_PED_SELECT_ALL_WEAPONS0xEFF296097FF1E509

The 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.

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

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

Open in the interactive natives reference