RedM Natives

SET_PED_DESIRED_HEADING

Hash0xAA5A7ECE2AA8FE70
Runtime nameSetPedDesiredHeading
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xAA5A7ECE2AA8FE70

Signature

void SET_PED_DESIRED_HEADING(Ped ped, float heading);

Parameters

NameTypeDescription
pedPed—
headingfloat—

Returns void

Usage

Lua
SetPedDesiredHeading(ped, heading)

-- always works, by hash
Citizen.InvokeNative(0xAA5A7ECE2AA8FE70, ped, heading)
JavaScript and C#
JavaScript
SetPedDesiredHeading(ped, heading);

// by hash
Citizen.invokeNative('0xAA5A7ECE2AA8FE70', ped, heading + 0.0000001);
C#
Function.Call((Hash)0xAA5A7ECE2AA8FE70, ped, heading);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.