_INVENTORY_CREATE_SORTED_COLLECTION
Based on its name and signature, here is our best reading:
Builds a sorted collection of items from inventory inventoryId, writing its size to size. Returns the collection id.
Signature
int _INVENTORY_CREATE_SORTED_COLLECTION(int inventoryId, int p1, int* size); // 0xBB7F968675B34B0C b1311Parameters
| # | Name | Type |
|---|---|---|
| 1 | inventoryId | int |
| 2 | p1 | int |
| 3 | size | int* (out pointer) |
Facts
| Name | _INVENTORY_CREATE_SORTED_COLLECTION |
|---|---|
| Hash | 0xBB7F968675B34B0C |
| Namespace | |
| Returns | int |
| Game build | 1311 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, size = Citizen.InvokeNative(0xBB7F968675B34B0C, -- _INVENTORY_CREATE_SORTED_COLLECTION
0, -- int inventoryId
0, -- int p1
Citizen.PointerValueInt(), -- int* size
Citizen.ResultAsInteger()
)
print(result, size)const [result, size] = Citizen.invokeNative("0xBB7F968675B34B0C", // _INVENTORY_CREATE_SORTED_COLLECTION
0, // int inventoryId
0, // int p1
Citizen.pointerValueInt(), // int* size
Citizen.resultAsInteger()
);
console.log(result, size)var sizeArg = new OutputArgument();
int result = Function.Call<int>((Hash)0xBB7F968675B34B0C, // _INVENTORY_CREATE_SORTED_COLLECTION
0, // int inventoryId
0, // int p1
sizeArg // int* size
);
int size = sizeArg.GetResult<int>();Related INVENTORY natives
- _INVENTORY_CREATE_ITEM_COLLECTION
- _INVENTORY_CREATE_ITEM_COLLECTION_2
- _INVENTORY_CREATE_ITEM_COLLECTION_WITH_FILTER
- _INVENTORY_CREATE_CATALOG_ITEM_INSPECTION_EFFECTS_ENTRY
- _INVENTORY_CREATE_CATALOG_ITEM_INSPECTION_STATS_ENTRY
- _INVENTORY_COPY_ITEM_TO_INVENTORY
- _INVENTORY_COPY_ITEM_TO_MISSION_INVENTORY
- _INVENTORY_GET_FULL_INVENTORY_ITEM_DATA
- _INVENTORY_GET_INVENTORY_ID_FROM_PED
- _INVENTORY_GET_INVENTORY_ITEM_CHILD
- _INVENTORY_GET_INVENTORY_ITEM_COMPATIBLE_SLOTS
- _INVENTORY_GET_INVENTORY_ITEM_COUNT_WITH_GUID
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.