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