# ENTITY::GET_ENTITY_ROTATION

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

## Signature

```c
Vector3 GET_ENTITY_ROTATION(Entity entity, int rotationOrder);
```

## Parameters

- `entity` (`Entity`)
- `rotationOrder` (`int`)

## Returns

`Vector3`

## Usage

### Lua

```lua
local retval = GetEntityRotation(entity, rotationOrder)

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

### JavaScript

```js
const retval = GetEntityRotation(entity, rotationOrder);

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

### C#

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

## Related enums

- [eEulerRotationOrder](https://natives.borderlinerp.com/enums/eEulerRotationOrder.md) — 6 values

## See also

- [ENTITY::SET_ENTITY_ROTATION](https://natives.borderlinerp.com/natives/ENTITY/SET_ENTITY_ROTATION.md)

*Sources: alloc8or RDR3 NativeDB.*
