_INVENTORY_DISABLE_ITEM
Hash
0x766315A564594401Runtime name
InventoryDisableItemNamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _INVENTORY_DISABLE_ITEM(int inventoryId, Hash item, Hash gtxReason);Parameters
| Name | Type | Description |
|---|---|---|
inventoryId | int | — |
item | Hash | — |
gtxReason | Hash | — |
Returns void
Description
Example: (1, WEAPON_REVOLVER_CATTLEMAN, 0) - disables cattleman revolver on weapon wheel
Usage
InventoryDisableItem(inventoryId, item, gtxReason)
-- always works, by hash
Citizen.InvokeNative(0x766315A564594401, inventoryId, item, gtxReason)JavaScript and C#
InventoryDisableItem(inventoryId, item, gtxReason);
// by hash
Citizen.invokeNative('0x766315A564594401', inventoryId, item, gtxReason);Function.Call((Hash)0x766315A564594401, inventoryId, item, gtxReason);- 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.