# DATAFILE::DATAARRAY_GET_DICT

- **Hash:** `0xA010655985853485`
- **Namespace:** DATAFILE
- **Runtime name (Lua/JS):** `DataarrayGetDict`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/DATAFILE/DATAARRAY_GET_DICT

## Signature

```c
Any* DATAARRAY_GET_DICT(Any* arrayData, int arrayIndex);
```

## Parameters

- `arrayData` (`Any*`)
- `arrayIndex` (`int`)

## Returns

`Any*`

## Usage

### Lua

```lua
local retval, arrayData = DataarrayGetDict(arrayIndex)

-- always available, by hash
local retval, arrayData = Citizen.InvokeNative(0xA010655985853485, Citizen.PointerValueInt(), arrayIndex, Citizen.ResultAsLong())
```

### JavaScript

```js
const [retval, arrayData] = DataarrayGetDict(arrayIndex);

// by hash
const [retval, arrayData] = Citizen.invokeNative('0xA010655985853485', Citizen.pointerValueInt(), arrayIndex, Citizen.returnResultAnyway(), Citizen.resultAsLong());
```

### C#

```csharp
var arrayData = new OutputArgument();
long retval = Function.Call<long>((Hash)0xA010655985853485, arrayData, arrayIndex);
// arrayData.GetResult<int>()
```

- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
- `Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.

## See also

- [DATAFILE::DATADICT_GET_DICT](https://natives.borderlinerp.com/natives/DATAFILE/DATADICT_GET_DICT.md)

*Sources: alloc8or RDR3 NativeDB.*
