The Lab
INVENTORY native

_INVENTORY_CREATE_ITEM_COLLECTION_2

returns int1 parambuild 1232

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

C
int _INVENTORY_CREATE_ITEM_COLLECTION_2(int* collectionSize); // 0x97A3646645727F42 b1232

Parameters

#NameType
1collectionSizeint* (out pointer)

Facts

Facts about _INVENTORY_CREATE_ITEM_COLLECTION_2
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.

Lua
local result, collectionSize = Citizen.InvokeNative(0x97A3646645727F42, -- _INVENTORY_CREATE_ITEM_COLLECTION_2
  Citizen.PointerValueInt(), -- int* collectionSize
  Citizen.ResultAsInteger()
)
print(result, collectionSize)
JavaScript
const [result, collectionSize] = Citizen.invokeNative("0x97A3646645727F42", // _INVENTORY_CREATE_ITEM_COLLECTION_2
  Citizen.pointerValueInt(), // int* collectionSize
  Citizen.resultAsInteger()
);
console.log(result, collectionSize)
C#
var collectionSizeArg = new OutputArgument();
int result = Function.Call<int>((Hash)0x97A3646645727F42, // _INVENTORY_CREATE_ITEM_COLLECTION_2
  collectionSizeArg // int* collectionSize
);
int collectionSize = collectionSizeArg.GetResult<int>();
All INVENTORY natives

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