The Lab
INVENTORY native

_INVENTORY_DISABLE_ITEM

returns void3 paramsbuild 1207

Disables item in inventory inventoryId, with gtxReason giving the reason shown to the player.

Signature

C
void _INVENTORY_DISABLE_ITEM(int inventoryId, Hash item, Hash gtxReason); // 0x766315A564594401 b1207

Parameters

#NameType
1inventoryIdint
2itemHash
3gtxReasonHash

Facts

Facts about _INVENTORY_DISABLE_ITEM
Name
_INVENTORY_DISABLE_ITEM
Hash
0x766315A564594401
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x766315A564594401, -- _INVENTORY_DISABLE_ITEM
  0, -- int inventoryId
  GetHashKey("name"), -- Hash item
  GetHashKey("name") -- Hash gtxReason
)
JavaScript
Citizen.invokeNative("0x766315A564594401", // _INVENTORY_DISABLE_ITEM
  0, // int inventoryId
  GetHashKey("name"), // Hash item
  GetHashKey("name") // Hash gtxReason
);
C#
Function.Call((Hash)0x766315A564594401, // _INVENTORY_DISABLE_ITEM
  0, // int inventoryId
  (uint)API.GetHashKey("name"), // Hash item
  (uint)API.GetHashKey("name") // Hash gtxReason
);
All INVENTORY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.