{"hash":"0xDBC4B552B2AE9A83","ns":"WEAPON","name":"_GET_PED_WEAPON_IN_SLOT","slug":"_GET_PED_WEAPON_IN_SLOT","official":false,"named":true,"luaName":"GetPedWeaponInSlot","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"ped","type":"Ped"},{"name":"slotHash","type":"Hash"}],"summary":"slotHash is usually just the weaponHash name, but WEAPON_* is replaced with SLOT_*","descriptions":[{"source":"alloc8or","format":"text","body":"slotHash is usually just the weaponHash name, but WEAPON_* is replaced with SLOT_*"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/_GET_PED_WEAPON_IN_SLOT","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_GET_PED_WEAPON_IN_SLOT.md","snippets":{"lua":"local retval = GetPedWeaponInSlot(ped, slotHash)","luaInvoke":"local retval = Citizen.InvokeNative(0xDBC4B552B2AE9A83, ped, slotHash, Citizen.ResultAsInteger())","js":"const retval = GetPedWeaponInSlot(ped, slotHash);","jsInvoke":"const retval = Citizen.invokeNative('0xDBC4B552B2AE9A83', ped, slotHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xDBC4B552B2AE9A83, ped, slotHash);","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."]}}