_INVENTORY_CREATE_ITEM_COLLECTION_2
Based on its name and signature, here is our best reading:
Builds an item collection and writes its size to collectionSize. Returns the collection id.
Signature
int _INVENTORY_CREATE_ITEM_COLLECTION_2(int* collectionSize); // 0x97A3646645727F42 b1232Parameters
| # | Name | Type |
|---|---|---|
| 1 | collectionSize | int* (out pointer) |
Facts
| Name | _INVENTORY_CREATE_ITEM_COLLECTION_2 |
|---|---|
| Hash | 0x97A3646645727F42 |
| Namespace | |
| Returns | int |
| Game build | 1232 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, collectionSize = Citizen.InvokeNative(0x97A3646645727F42, -- _INVENTORY_CREATE_ITEM_COLLECTION_2
Citizen.PointerValueInt(), -- int* collectionSize
Citizen.ResultAsInteger()
)
print(result, collectionSize)const [result, collectionSize] = Citizen.invokeNative("0x97A3646645727F42", // _INVENTORY_CREATE_ITEM_COLLECTION_2
Citizen.pointerValueInt(), // int* collectionSize
Citizen.resultAsInteger()
);
console.log(result, collectionSize)var collectionSizeArg = new OutputArgument();
int result = Function.Call<int>((Hash)0x97A3646645727F42, // _INVENTORY_CREATE_ITEM_COLLECTION_2
collectionSizeArg // int* collectionSize
);
int collectionSize = collectionSizeArg.GetResult<int>();Related INVENTORY natives
- _INVENTORY_CREATE_ITEM_COLLECTION
- _INVENTORY_CREATE_ITEM_COLLECTION_WITH_FILTER
- _INVENTORY_SET_INVENTORY_ITEM_HIDDEN_2
- _INVENTORY_CREATE_CATALOG_ITEM_INSPECTION_EFFECTS_ENTRY
- _INVENTORY_CREATE_CATALOG_ITEM_INSPECTION_STATS_ENTRY
- _INVENTORY_CREATE_SORTED_COLLECTION
- _INVENTORY_COPY_ITEM_TO_INVENTORY
- _INVENTORY_COPY_ITEM_TO_MISSION_INVENTORY
- _INVENTORY_GET_FULL_INVENTORY_ITEM_DATA
- _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.