{"hash":"0xCB5D11F9508A928D","ns":"INVENTORY","name":"_INVENTORY_ADD_ITEM_WITH_GUID","slug":"_INVENTORY_ADD_ITEM_WITH_GUID","official":false,"named":true,"luaName":"InventoryAddItemWithGuid","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"inventoryId","type":"int"},{"name":"guid1","type":"Any*"},{"name":"guid2","type":"Any*"},{"name":"item","type":"Hash"},{"name":"inventoryItemSlot","type":"Hash"},{"name":"p5","type":"int"},{"name":"addReason","type":"Hash"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"inventoryItemSlotHash: https://pastebin.com/P6fyr3vr"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_ADD_ITEM_WITH_GUID","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_ADD_ITEM_WITH_GUID.md","snippets":{"lua":"local retval, guid1, guid2 = InventoryAddItemWithGuid(inventoryId, item, inventoryItemSlot, p5, addReason)","luaInvoke":"local retval, guid1, guid2 = Citizen.InvokeNative(0xCB5D11F9508A928D, inventoryId, Citizen.PointerValueInt(), Citizen.PointerValueInt(), item, inventoryItemSlot, p5, addReason, Citizen.ReturnResultAnyway())","js":"const [retval, guid1, guid2] = InventoryAddItemWithGuid(inventoryId, item, inventoryItemSlot, p5, addReason);","jsInvoke":"const [retval, guid1, guid2] = Citizen.invokeNative('0xCB5D11F9508A928D', inventoryId, Citizen.pointerValueInt(), Citizen.pointerValueInt(), item, inventoryItemSlot, p5, addReason, Citizen.returnResultAnyway());","csharp":"var guid1 = new OutputArgument();\nvar guid2 = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xCB5D11F9508A928D, inventoryId, guid1, guid2, item, inventoryItemSlot, p5, addReason);\n// guid1.GetResult<int>()\n// guid2.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."]}}