PedClient

setPedEnableWeaponBlocking

SET_PED_ENABLE_WEAPON_BLOCKING0x97A790315D3831FD

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

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

Open in the interactive natives reference