# CFX::GET_ENTITY_HEADING

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

## Signature

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

## Parameters

- `entity` (`Entity`)

## Returns

`float`

## Usage

### Lua

```lua
local retval = GetEntityHeading(entity)

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

### JavaScript

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

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

### C#

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

## See also

- [CFX::SET_ENTITY_HEADING](https://natives.borderlinerp.com/natives/CFX/SET_ENTITY_HEADING.md) — Set the heading of an entity in degrees also known as "Yaw".

*Sources: Cfx.re native reference.*
