# ENTITY::_GET_ENTITY_FORWARD_VECTOR_YX

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

## Signature

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

## Parameters

- `entity` (`Entity`)

## Returns

`Vector3`

## Description

Gets the entity's forward vector in YX(Z) eulers. Similar to GET_ENTITY_FORWARD_VECTOR

## Usage

### Lua

```lua
local retval = GetEntityForwardVectorYx(entity)

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

### JavaScript

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

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

### C#

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

- 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.*
