Native referenceFiveM

GET_ENTITY_HEADING

0xE83D4F9BA2A38914 ENTITY
FUNCTION SIGNATURE
float GET_ENTITY_HEADING(Entity entity);
Property Value
Native Name GET_ENTITY_HEADING
Hash 0xE83D4F9BA2A38914
Return Type float
Parameters entity (Entity)

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


### Parameters
- **`entity`** (`Entity`) — The entity to get the heading from.

### Examples
```lua
local heading = GetEntityHeading(PlayerPedId())
print(heading)
const heading = GetEntityHeading(PlayerPedId());
console.log(`${heading}`);
using static CitizenFX.Core.Native.API;
// ...
float heading = GetEntityHeading(PlayerPedId());

// or the preferred use of C# wrapper
float heading = Game.PlayerPed.Heading;

Debug.WriteLine($"{heading}");
Back to ENTITY