The Lab
INVENTORY native

_GET_ITEM_ROLE_MAX_LEVEL_COUNT

returns int2 paramsbuild 1207

Based on its name and signature, here is our best reading:

Returns a count related to the role max level eRoleMaxLevel for inventory inventoryId.

Signature

C
int _GET_ITEM_ROLE_MAX_LEVEL_COUNT(int inventoryId, Hash eRoleMaxLevel); // 0xADDD1E7C0ECF7D95 b1207

Parameters

#NameType
1inventoryIdint
2eRoleMaxLevelHash

Facts

Facts about _GET_ITEM_ROLE_MAX_LEVEL_COUNT
Name
_GET_ITEM_ROLE_MAX_LEVEL_COUNT
Hash
0xADDD1E7C0ECF7D95
Namespace
Returns
int
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xADDD1E7C0ECF7D95, -- _GET_ITEM_ROLE_MAX_LEVEL_COUNT
  0, -- int inventoryId
  GetHashKey("name"), -- Hash eRoleMaxLevel
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xADDD1E7C0ECF7D95", // _GET_ITEM_ROLE_MAX_LEVEL_COUNT
  0, // int inventoryId
  GetHashKey("name"), // Hash eRoleMaxLevel
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xADDD1E7C0ECF7D95, // _GET_ITEM_ROLE_MAX_LEVEL_COUNT
  0, // int inventoryId
  (uint)API.GetHashKey("name") // Hash eRoleMaxLevel
);
All INVENTORY natives

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