{"hash":"0x886DFD3E185C8A89","ns":"INVENTORY","name":"INVENTORY_GET_GUID_FROM_ITEMID","slug":"INVENTORY_GET_GUID_FROM_ITEMID","official":true,"named":true,"luaName":"InventoryGetGuidFromItemid","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"inventoryId","type":"int"},{"name":"guid","type":"Any*"},{"name":"p2","type":"Hash"},{"name":"slotId","type":"Hash"},{"name":"outGuid","type":"Any*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/INVENTORY/INVENTORY_GET_GUID_FROM_ITEMID","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/INVENTORY_GET_GUID_FROM_ITEMID.md","snippets":{"lua":"local retval, guid, outGuid = InventoryGetGuidFromItemid(inventoryId, p2, slotId)","luaInvoke":"local retval, guid, outGuid = Citizen.InvokeNative(0x886DFD3E185C8A89, inventoryId, Citizen.PointerValueInt(), p2, slotId, Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())","js":"const [retval, guid, outGuid] = InventoryGetGuidFromItemid(inventoryId, p2, slotId);","jsInvoke":"const [retval, guid, outGuid] = Citizen.invokeNative('0x886DFD3E185C8A89', inventoryId, Citizen.pointerValueInt(), p2, slotId, Citizen.pointerValueInt(), Citizen.returnResultAnyway());","csharp":"var guid = new OutputArgument();\nvar outGuid = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x886DFD3E185C8A89, inventoryId, guid, p2, slotId, outGuid);\n// guid.GetResult<int>()\n// outGuid.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."]}}