{"hash":"0x70E3A884ED000A01","ns":"INVENTORY","name":"_INVENTORY_GET_INVENTORY_ITEM_IN_USE","slug":"_INVENTORY_GET_INVENTORY_ITEM_IN_USE","official":false,"named":true,"luaName":"InventoryGetInventoryItemInUse","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"inventoryId","type":"int"},{"name":"guid","type":"Any*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1311","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_INVENTORY_ITEM_IN_USE","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_INVENTORY_ITEM_IN_USE.md","snippets":{"lua":"local retval, guid = InventoryGetInventoryItemInUse(inventoryId, guid)","luaInvoke":"local retval, guid = Citizen.InvokeNative(0x70E3A884ED000A01, inventoryId, Citizen.PointerValueIntInitialized(guid), Citizen.ReturnResultAnyway())","js":"const [retval, guid] = InventoryGetInventoryItemInUse(inventoryId, guid);","jsInvoke":"const [retval, guid] = Citizen.invokeNative('0x70E3A884ED000A01', inventoryId, Citizen.pointerValueIntInitialized(guid), Citizen.returnResultAnyway());","csharp":"var guid = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x70E3A884ED000A01, inventoryId, guid);\n// guid.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","`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."]}}