WeaponClient

removeAllPedWeapons

REMOVE_ALL_PED_WEAPONS0xF25DF915FA38C5F3

The GTA V native REMOVE_ALL_PED_WEAPONS of the WEAPON namespace, as LS:MP client scripts call it: the global function removeAllPedWeapons, in JavaScript and in Lua.

SignatureJavaScript
removeAllPedWeapons(ped: Ped, p1: boolean): void
SignatureLua
removeAllPedWeapons(ped: Ped, p1: boolean)

Usage

JavaScript
removeAllPedWeapons(ped, p1);
Lua
removeAllPedWeapons(ped, p1)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
p1BOOLbooleanboolean

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.

setting the last params to false it does that same so I would suggest its not a toggle

Reference

Namespace
Weapon WEAPON
In the game
void REMOVE_ALL_PED_WEAPONS(Ped ped, BOOL p1)
Hash
0xF25DF915FA38C5F3

Open in the interactive natives reference