The Lab
ENTITY native

SET_ENTITY_HEADING

returns void2 paramsbuild 1207

Sets the heading of the entity, in degrees.

Signature

C
void SET_ENTITY_HEADING(Entity entity, float heading); // 0xCF2B9C0645C4651B b1207

Parameters

#NameType
1entityEntity
2headingfloat

Facts

Facts about SET_ENTITY_HEADING
Name
SET_ENTITY_HEADING
Hash
0xCF2B9C0645C4651B
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xCF2B9C0645C4651B, -- SET_ENTITY_HEADING
  PlayerPedId(), -- Entity entity
  0.0 -- float heading
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xCF2B9C0645C4651B", // SET_ENTITY_HEADING
  PlayerPedId(), // Entity entity
  0.0 // float heading
);
C#
Function.Call((Hash)0xCF2B9C0645C4651B, // SET_ENTITY_HEADING
  API.PlayerPedId(), // Entity entity
  0.0f // float heading
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.