# ITEMDATABASE::_ITEMDATABASE_GET_COMPONENT_ITEM

- **Hash:** `0x8750F69A720C2E41`
- **Namespace:** ITEMDATABASE
- **Runtime name (Lua/JS):** `ItemdatabaseGetComponentItem`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_GET_COMPONENT_ITEM

## Signature

```c
BOOL _ITEMDATABASE_GET_COMPONENT_ITEM(int collectionId, int index, Hash* outKey);
```

## Parameters

- `collectionId` (`int`)
- `index` (`int`)
- `outKey` (`Hash*`)

## Returns

`BOOL`

## Description

Params: p2 can be a component item hash

## Usage

### Lua

```lua
local retval, outKey = ItemdatabaseGetComponentItem(collectionId, index, outKey)

-- always available, by hash
local retval, outKey = Citizen.InvokeNative(0x8750F69A720C2E41, collectionId, index, Citizen.PointerValueIntInitialized(outKey), Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const [retval, outKey] = ItemdatabaseGetComponentItem(collectionId, index, outKey);

// by hash
const [retval, outKey] = Citizen.invokeNative('0x8750F69A720C2E41', collectionId, index, Citizen.pointerValueIntInitialized(outKey), Citizen.returnResultAnyway());
```

### C#

```csharp
var outKey = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x8750F69A720C2E41, collectionId, index, outKey);
// outKey.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.*
