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