PedClient

isPedSwitchingWeapon

IS_PED_SWITCHING_WEAPON0x3795688A307E1EB6

The GTA V native IS_PED_SWITCHING_WEAPON of the PED namespace, as LS:MP client scripts call it: the global function isPedSwitchingWeapon, in JavaScript and in Lua.

SignatureJavaScript
isPedSwitchingWeapon(Ped: Ped): boolean
SignatureLua
isPedSwitchingWeapon(Ped: Ped): boolean

Usage

JavaScript
const result = isPedSwitchingWeapon(Ped);
Lua
local result = isPedSwitchingWeapon(Ped)

Parameters

ParameterTypeJavaScriptLua
PedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_SWITCHING_WEAPON(Ped Ped)
Hash
0x3795688A307E1EB6
Introduced
Game build 505 legacy numbering
Formerly
_IS_PED_SWAPPING_WEAPON

Open in the interactive natives reference