RedM Natives

_INVENTORY_DISABLE_ITEM

Hash0x766315A564594401
Runtime nameInventoryDisableItem
NamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _INVENTORY_DISABLE_ITEM(int inventoryId, Hash item, Hash gtxReason);

Parameters

NameTypeDescription
inventoryIdint—
itemHash—
gtxReasonHash—

Returns void

Description

Example: (1, WEAPON_REVOLVER_CATTLEMAN, 0) - disables cattleman revolver on weapon wheel

Usage

Lua
InventoryDisableItem(inventoryId, item, gtxReason)

-- always works, by hash
Citizen.InvokeNative(0x766315A564594401, inventoryId, item, gtxReason)
JavaScript and C#
JavaScript
InventoryDisableItem(inventoryId, item, gtxReason);

// by hash
Citizen.invokeNative('0x766315A564594401', inventoryId, item, gtxReason);
C#
Function.Call((Hash)0x766315A564594401, inventoryId, item, gtxReason);
  • 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`.
  • 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.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.