isPedSwitchingWeapon
IS_PED_SWITCHING_WEAPON0x3795688A307E1EB6The 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.
isPedSwitchingWeapon(Ped: Ped): booleanisPedSwitchingWeapon(Ped: Ped): booleanUsage
JavaScript
const result = isPedSwitchingWeapon(Ped);Lua
local result = isPedSwitchingWeapon(Ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
Ped | Ped | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- 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