# ENTITY::GET_ENTITY_HEADING

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

## Signature

```c
float GET_ENTITY_HEADING(Entity entity);
```

## Parameters

- `entity` (`Entity`)

## Returns

`float`

## Description

Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.

## Usage

### Lua

```lua
local retval = GetEntityHeading(entity)

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

### JavaScript

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

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

### C#

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

## See also

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

*Sources: alloc8or RDR3 NativeDB.*
