SET_PED_DESIRED_HEADING
Sets the heading ped will turn towards.
Signature
void SET_PED_DESIRED_HEADING(Ped ped, float heading); // 0xAA5A7ECE2AA8FE70 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | heading | float |
Facts
| 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.
Citizen.InvokeNative(0xAA5A7ECE2AA8FE70, -- SET_PED_DESIRED_HEADING
PlayerPedId(), -- Ped ped
0.0 -- float heading
)// 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
);Function.Call((Hash)0xAA5A7ECE2AA8FE70, // SET_PED_DESIRED_HEADING
API.PlayerPedId(), // Ped ped
0.0f // float heading
);Related PED natives
- SET_PED_DEFENSIVE_AREA_DIRECTION
- SET_PED_DEFENSIVE_AREA_VOLUME
- _SET_PED_DESIRED_LOCO_FOR_MODEL
- _SET_PED_DESIRED_LOCO_MOTION_TYPE
- SET_PED_ACCURACY
- SET_PED_AS_COP
- SET_PED_AS_GROUP_LEADER
- SET_PED_AS_GROUP_MEMBER
- SET_PED_CAN_ARM_IK
- SET_PED_CAN_BE_INCAPACITATED
- SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE
- SET_PED_CAN_BE_TARGETTED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.