setPedEnableWeaponBlocking
SET_PED_ENABLE_WEAPON_BLOCKING0x97A790315D3831FDThe GTA V native SET_PED_ENABLE_WEAPON_BLOCKING of the PED namespace, as LS:MP client scripts call it: the global function setPedEnableWeaponBlocking, in JavaScript and in Lua.
setPedEnableWeaponBlocking(ped: Ped, toggle: boolean): voidsetPedEnableWeaponBlocking(ped: Ped, toggle: boolean)Usage
JavaScript
setPedEnableWeaponBlocking(ped, toggle);Lua
setPedEnableWeaponBlocking(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
- Ped PED
- In the game
void SET_PED_ENABLE_WEAPON_BLOCKING(Ped ped, BOOL toggle)- Hash
0x97A790315D3831FD