The Lab
INVENTORY native

_GET_ITEM_SLOT_MAX_COUNT

returns int2 paramsbuild 1207

Returns the maximum number of provision items that can be held in slot slotId.

Signature

C
int _GET_ITEM_SLOT_MAX_COUNT(Hash provision, Hash slotId); // 0xE80E50BEE276A54A b1207

Parameters

#NameType
1provisionHash
2slotIdHash

Facts

Facts about _GET_ITEM_SLOT_MAX_COUNT
Name
_GET_ITEM_SLOT_MAX_COUNT
Hash
0xE80E50BEE276A54A
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(0xE80E50BEE276A54A, -- _GET_ITEM_SLOT_MAX_COUNT
  GetHashKey("name"), -- Hash provision
  GetHashKey("name"), -- Hash slotId
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xE80E50BEE276A54A", // _GET_ITEM_SLOT_MAX_COUNT
  GetHashKey("name"), // Hash provision
  GetHashKey("name"), // Hash slotId
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xE80E50BEE276A54A, // _GET_ITEM_SLOT_MAX_COUNT
  (uint)API.GetHashKey("name"), // Hash provision
  (uint)API.GetHashKey("name") // Hash slotId
);
All INVENTORY natives

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