SET_PED_DESIRED_HEADING
Hash
0xAA5A7ECE2AA8FE70Runtime name
SetPedDesiredHeadingNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xAA5A7ECE2AA8FE70Signature
void SET_PED_DESIRED_HEADING(Ped ped, float heading);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
heading | float | — |
Returns void
Usage
SetPedDesiredHeading(ped, heading)
-- always works, by hash
Citizen.InvokeNative(0xAA5A7ECE2AA8FE70, ped, heading)JavaScript and C#
SetPedDesiredHeading(ped, heading);
// by hash
Citizen.invokeNative('0xAA5A7ECE2AA8FE70', ped, heading + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.