Native referenceFiveM

SET_ENTITY_HEADING

0x8E2530AA8ADA980E ENTITY
FUNCTION SIGNATURE
void SET_ENTITY_HEADING(Entity entity, float heading);
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;
Back to ENTITY