{"hash":"0x07E1C35F0078C3F9","ns":"WEAPON","name":"_IS_PED_HOLDING_WEAPON","slug":"_IS_PED_HOLDING_WEAPON","official":false,"named":true,"luaName":"IsPedHoldingWeapon","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"},{"name":"weapon","type":"Hash"}],"summary":"Weapon must currently be held/equipped by the ped.","descriptions":[{"source":"alloc8or","format":"text","body":"Seems to return true if the passed weapon is some sort of non-lethal melee weapon.\nWeapon must currently be held/equipped by the ped."},{"source":"vorp","format":"text","body":"Returns whether the specified ped is holding a weapon with the given hash.\nonly these weapons below return true\n 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"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/_IS_PED_HOLDING_WEAPON","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_IS_PED_HOLDING_WEAPON.md","snippets":{"lua":"local retval = IsPedHoldingWeapon(ped, weapon)","luaInvoke":"local retval = Citizen.InvokeNative(0x07E1C35F0078C3F9, ped, weapon, Citizen.ReturnResultAnyway())","js":"const retval = IsPedHoldingWeapon(ped, weapon);","jsInvoke":"const retval = Citizen.invokeNative('0x07E1C35F0078C3F9', ped, weapon, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x07E1C35F0078C3F9, ped, weapon);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}