{"hash":"0x8DECB02F88F428BC","ns":"WEAPON","name":"HAS_PED_GOT_WEAPON","slug":"HAS_PED_GOT_WEAPON","official":true,"named":true,"luaName":"HasPedGotWeapon","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"},{"name":"weaponHash","type":"Hash"},{"name":"p2","type":"int"},{"name":"onlyCheckPlayerInventory","type":"BOOL"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"onlyCheckPlayerInventory: If true, it will only check the players current inventory. If false, it also checks your horse inventory"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x8DECB02F88F428BC","gtaJhash":"0x43D2FA82","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/HAS_PED_GOT_WEAPON","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/HAS_PED_GOT_WEAPON.md","snippets":{"lua":"local retval = HasPedGotWeapon(ped, weaponHash, p2, onlyCheckPlayerInventory)","luaInvoke":"local retval = Citizen.InvokeNative(0x8DECB02F88F428BC, ped, weaponHash, p2, onlyCheckPlayerInventory, Citizen.ReturnResultAnyway())","js":"const retval = HasPedGotWeapon(ped, weaponHash, p2, onlyCheckPlayerInventory);","jsInvoke":"const retval = Citizen.invokeNative('0x8DECB02F88F428BC', ped, weaponHash, p2, onlyCheckPlayerInventory, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x8DECB02F88F428BC, ped, weaponHash, p2, onlyCheckPlayerInventory);","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` ``."]}}