# DATABINDING::_VIRTUAL_COLLECTION_ITEM_ADD

- **Hash:** `0x6DCBF187221CF73D`
- **Namespace:** DATABINDING
- **Runtime name (Lua/JS):** `VirtualCollectionItemAdd`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/DATABINDING/_VIRTUAL_COLLECTION_ITEM_ADD

## Signature

```c
void _VIRTUAL_COLLECTION_ITEM_ADD(Any p0, int index, Hash p2, Any p3);
```

## Parameters

- `p0` (`Any`)
- `index` (`int`)
- `p2` (`Hash`)
- `p3` (`Any`)

## Returns

`void`

## Usage

### Lua

```lua
VirtualCollectionItemAdd(p0, index, p2, p3)

-- always available, by hash
Citizen.InvokeNative(0x6DCBF187221CF73D, p0, index, p2, p3)
```

### JavaScript

```js
VirtualCollectionItemAdd(p0, index, p2, p3);

// by hash
Citizen.invokeNative('0x6DCBF187221CF73D', p0, index, p2, p3);
```

### C#

```csharp
Function.Call((Hash)0x6DCBF187221CF73D, p0, index, p2, p3);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.
- 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.*
