{"hash":"0xBE012571B25F5ACA","ns":"INVENTORY","name":"_INVENTORY_GET_INVENTORY_ITEM_EQUIPPED_IN_SLOT","slug":"_INVENTORY_GET_INVENTORY_ITEM_EQUIPPED_IN_SLOT","official":false,"named":true,"luaName":"InventoryGetInventoryItemEquippedInSlot","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"inventoryId","type":"int"},{"name":"guid","type":"Any*"},{"name":"slotId","type":"Hash"},{"name":"p3","type":"int"},{"name":"p4","type":"Any*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_INVENTORY_ITEM_EQUIPPED_IN_SLOT","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_INVENTORY_ITEM_EQUIPPED_IN_SLOT.md","snippets":{"lua":"local retval, guid, p4 = InventoryGetInventoryItemEquippedInSlot(inventoryId, slotId, p3)","luaInvoke":"local retval, guid, p4 = Citizen.InvokeNative(0xBE012571B25F5ACA, inventoryId, Citizen.PointerValueInt(), slotId, p3, Citizen.PointerValueInt(), Citizen.ResultAsInteger())","js":"const [retval, guid, p4] = InventoryGetInventoryItemEquippedInSlot(inventoryId, slotId, p3);","jsInvoke":"const [retval, guid, p4] = Citizen.invokeNative('0xBE012571B25F5ACA', inventoryId, Citizen.pointerValueInt(), slotId, p3, Citizen.pointerValueInt(), Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var guid = new OutputArgument();\nvar p4 = new OutputArgument();\nint retval = Function.Call<int>((Hash)0xBE012571B25F5ACA, inventoryId, guid, slotId, p3, p4);\n// guid.GetResult<int>()\n// p4.GetResult<int>()","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` ``.","Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.","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."]}}