# INVENTORY::_INVENTORY_CREATE_ITEM_COLLECTION_2

- **Hash:** `0x97A3646645727F42`
- **Namespace:** INVENTORY
- **Runtime name (Lua/JS):** `InventoryCreateItemCollection_2`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1232
- **URL:** https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_CREATE_ITEM_COLLECTION_2

## Signature

```c
int _INVENTORY_CREATE_ITEM_COLLECTION_2(int* collectionSize);
```

## Parameters

- `collectionSize` (`int*`)

## Returns

`int`

## Description

Returns collectionId

## Usage

### Lua

```lua
local retval, collectionSize = InventoryCreateItemCollection_2(collectionSize)

-- always available, by hash
local retval, collectionSize = Citizen.InvokeNative(0x97A3646645727F42, Citizen.PointerValueIntInitialized(collectionSize), Citizen.ResultAsInteger())
```

### JavaScript

```js
const [retval, collectionSize] = InventoryCreateItemCollection_2(collectionSize);

// by hash
const [retval, collectionSize] = Citizen.invokeNative('0x97A3646645727F42', Citizen.pointerValueIntInitialized(collectionSize), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
var collectionSize = new OutputArgument();
int retval = Function.Call<int>((Hash)0x97A3646645727F42, collectionSize);
// collectionSize.GetResult<int>()
```

- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB.*
