_INVENTORY_REMOVE_INVENTORY_ITEMS
Only used in R* SP Scripts
Hash
0x5D6182F3BCE1333BRuntime name
InventoryRemoveInventoryItemsNamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _INVENTORY_REMOVE_INVENTORY_ITEMS(int inventoryId, Hash removeReason);Parameters
| Name | Type | Description |
|---|---|---|
inventoryId | int | — |
removeReason | Hash | — |
Returns BOOL
Description
removeReason: REMOVE_REASON_DEFAULT (eRemoveItemReason)
Example: INVENTORY::_0x5D6182F3BCE1333B(1, joaat("REMOVE_REASON_DEFAULT")); -> clears weapon wheel
Only used in R* SP Scripts
Usage
local retval = InventoryRemoveInventoryItems(inventoryId, removeReason)
-- always works, by hash
local retval = Citizen.InvokeNative(0x5D6182F3BCE1333B, inventoryId, removeReason, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = InventoryRemoveInventoryItems(inventoryId, removeReason);
// by hash
const retval = Citizen.invokeNative('0x5D6182F3BCE1333B', inventoryId, removeReason, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x5D6182F3BCE1333B, inventoryId, removeReason);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.