Namespace: WEAPONAPI set: clientGame: gta5
void _SET_CAN_PED_EQUIP_WEAPON(Ped ped, Hash weaponHash, BOOL toggle);
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.
Old name: _SET_CAN_PED_SELECT_WEAPON