_IS_PED_HOLDING_WEAPON
Returns whether the specified ped is holding a weapon with the given hash. only these weapons below return true WEAPON_BOW, WEAPON_KIT_METAL_DETECTOR, WEAPON_MELEE_CLEAVER, WEAPON_MELEE_DAVY_LANTERN, WEAPON_MELEE_HATCHET, WEAPON_MELEE_HATCHET_HUNTER, WEAPON_MELEE_KNIFE_JAWBONE, WEAPON_MELEE_LANTERN WEAPON_MELEE_TORCH, WEAPON_MOONSHINEJUG_MP, WEAPON_RIFLE_BOLTACTION, WEAPON_SHOTGUN_PUMP, WEAPON_THROWN_BOLAS, WEAPON_THROWN_MOLOTOV
WEAPONBuild 1207
Signature
lua
IsPedHoldingWeapon(PlayerPedId(), GetHashKey("..."))
-- returns BOOLParameters
| Name | Type | Description |
|---|---|---|
| Ped | — | |
| Hash | — |
Usage
lua
IsPedHoldingWeapon(PlayerPedId(), GetHashKey("..."))Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
