IsPedArmed — FiveM Natives
0x475768A975D5AD17 · WEAPON · all
Checks if the ped is currently equipped with a weapon matching a bit specified using a bitwise-or in typeFlags. | Bit value | Effect | |-----------|-------------------| | 1 | Melee weapons | | 2 | Explosive weapons | | 4 | Any other weapons | Not specifying any bit will lead to the native always returning 'false', and for example specifying '4 | 2' will check for any weapon except fists and melee weapons.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The ped to check armed state on. |
| typeFlags | int | Type flags to check. |
Returns
BOOL