WEAPON

SET_CAN_PED_SELECT_INVENTORY_WEAPON

0xB4771B9AAF4E68E4

Signature

// WEAPON
void SET_CAN_PED_SELECT_INVENTORY_WEAPON(Ped ped, Hash weaponHash, BOOL toggle)

Parameters

Type Name
Ped ped
Hash weaponHash
BOOL toggle

Return type void

Build 1103

Former names

  • _SET_CAN_PED_SELECT_WEAPON
  • _SET_CAN_PED_EQUIP_WEAPON

Documentation

Disables selecting the given weapon. Ped isn't forced to put the gun away. However you can't reselect the weapon if you holster then unholster. Weapon is also grayed out on the weapon wheel. Full list of weapons by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/weapons.json

APPI RP

Join us on FiveM

Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.