# ENTITY::GET_ENTITY_FORWARD_VECTOR

- **Hash:** `0x2412D9C05BB09B97`
- **Namespace:** ENTITY
- **Runtime name (Lua/JS):** `GetEntityForwardVector`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ENTITY/GET_ENTITY_FORWARD_VECTOR

## Signature

```c
Vector3 GET_ENTITY_FORWARD_VECTOR(Entity entity);
```

## Parameters

- `entity` (`Entity`)

## Returns

`Vector3`

## Description

Gets the entity's forward vector in XY(Z) eulers.

## Usage

### Lua

```lua
local retval = GetEntityForwardVector(entity)

-- always available, by hash
local retval = Citizen.InvokeNative(0x2412D9C05BB09B97, entity, Citizen.ResultAsVector())
```

### JavaScript

```js
const retval = GetEntityForwardVector(entity);

// by hash
const retval = Citizen.invokeNative('0x2412D9C05BB09B97', entity, Citizen.returnResultAnyway(), Citizen.resultAsVector());
```

### C#

```csharp
Vector3 retval = Function.Call<Vector3>((Hash)0x2412D9C05BB09B97, entity);
```

*Sources: alloc8or RDR3 NativeDB.*
