# DATAFILE::DATADICT_GET_VECTOR

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

## Signature

```c
Vector3 DATADICT_GET_VECTOR(Any* objectData, const char* key);
```

## Parameters

- `objectData` (`Any*`)
- `key` (`const char*`)

## Returns

`Vector3`

## Usage

### Lua

```lua
local retval, objectData = DatadictGetVector(key)

-- always available, by hash
local retval, objectData = Citizen.InvokeNative(0xE459C941431E0FFA, Citizen.PointerValueInt(), key, Citizen.ResultAsVector())
```

### JavaScript

```js
const [retval, objectData] = DatadictGetVector(key);

// by hash
const [retval, objectData] = Citizen.invokeNative('0xE459C941431E0FFA', Citizen.pointerValueInt(), key, Citizen.returnResultAnyway(), Citizen.resultAsVector());
```

### C#

```csharp
var objectData = new OutputArgument();
Vector3 retval = Function.Call<Vector3>((Hash)0xE459C941431E0FFA, objectData, key);
// objectData.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::DATAARRAY_GET_VECTOR](https://natives.borderlinerp.com/natives/DATAFILE/DATAARRAY_GET_VECTOR.md)

*Sources: alloc8or RDR3 NativeDB.*
