The Lab
PED native

SET_PED_DESIRED_HEADING

returns void2 paramsbuild 1207

Sets the heading ped will turn towards.

Signature

C
void SET_PED_DESIRED_HEADING(Ped ped, float heading); // 0xAA5A7ECE2AA8FE70 b1207

Parameters

#NameType
1pedPed
2headingfloat

Facts

Facts about SET_PED_DESIRED_HEADING
Name
SET_PED_DESIRED_HEADING
Hash
0xAA5A7ECE2AA8FE70
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(0xAA5A7ECE2AA8FE70, -- SET_PED_DESIRED_HEADING
  PlayerPedId(), -- Ped ped
  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("0xAA5A7ECE2AA8FE70", // SET_PED_DESIRED_HEADING
  PlayerPedId(), // Ped ped
  0.0 // float heading
);
C#
Function.Call((Hash)0xAA5A7ECE2AA8FE70, // SET_PED_DESIRED_HEADING
  API.PlayerPedId(), // Ped ped
  0.0f // float heading
);
All PED natives

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