_GET_ITEM_SLOT_MAX_COUNT
Returns the maximum number of provision items that can be held in slot slotId.
Signature
int _GET_ITEM_SLOT_MAX_COUNT(Hash provision, Hash slotId); // 0xE80E50BEE276A54A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | provision | Hash |
| 2 | slotId | Hash |
Facts
| 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.
local result = Citizen.InvokeNative(0xE80E50BEE276A54A, -- _GET_ITEM_SLOT_MAX_COUNT
GetHashKey("name"), -- Hash provision
GetHashKey("name"), -- Hash slotId
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xE80E50BEE276A54A", // _GET_ITEM_SLOT_MAX_COUNT
GetHashKey("name"), // Hash provision
GetHashKey("name"), // Hash slotId
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xE80E50BEE276A54A, // _GET_ITEM_SLOT_MAX_COUNT
(uint)API.GetHashKey("name"), // Hash provision
(uint)API.GetHashKey("name") // Hash slotId
);Related INVENTORY natives
- _GET_ITEM_ROLE_MAX_LEVEL_COUNT
- _GET_DEFAULT_ITEM_SLOT_INFO
- _INVENTORY_GET_INVENTORY_ITEM_COUNT_WITH_GUID
- _INVENTORY_GET_INVENTORY_ITEM_COUNT_WITH_ITEMID
- _INVENTORY_GET_INVENTORY_ITEM_EQUIPPED_IN_SLOT
- _INVENTORY_GET_INVENTORY_ITEM_EQUIPPED_IN_SLOT_BY_REF
- _INVENTORY_GET_INVENTORY_ITEM_FIT_SLOT
- INVENTORY_GET_CHILDREN_IN_SLOT_COUNT
- _INVENTORY_GET_CHILDREN_COUNT
- _INVENTORY_GET_FULL_INVENTORY_ITEM_DATA
- _INVENTORY_GET_INVENTORY_ITEM_CHILD
- _INVENTORY_GET_INVENTORY_ITEM_COMPATIBLE_SLOTS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.