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