# CFX::GET_ENTITY_ROTATION

- **Hash:** `0x8FF45B04`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetEntityRotation`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** named only
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_ENTITY_ROTATION

## Signature

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

## Parameters

- `entity` (`Entity`)

## Returns

`Vector3`

## Usage

### Lua

```lua
local retval = GetEntityRotation(entity)

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

### JavaScript

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

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

### C#

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

## See also

- [CFX::SET_ENTITY_ROTATION](https://natives.borderlinerp.com/natives/CFX/SET_ENTITY_ROTATION.md) — Sets the rotation of a specified entity in the game world.

*Sources: Cfx.re native reference.*
