| Property | Value |
|---|---|
| Native Name | SET_ENTITY_HEADING |
| Hash | 0x8E2530AA8ADA980E |
| Return Type | void |
| Parameters | entity (Entity), heading (float) |
Description: Set the heading of an entity in degrees also known as "Yaw".
Parameters
entity(Entity) — The entity to set the heading for.heading(float) — The heading in degrees.
Examples
SetEntityHeading(PlayerPedId(), 40.0)
SetEntityHeading(PlayerPedId(), 40);
using static CitizenFX.Core.Native.API;
// ...
SetEntityHeading(PlayerPedId(), 40.0f);
// or the preferred use of C# wrapper
Game.PlayerPed.Heading = 40.0f;