TASK_TURN_PED_TO_FACE_COORD
Tasks ped to turn toward (x, y, z), for up to duration milliseconds.
Signature
void TASK_TURN_PED_TO_FACE_COORD(Ped ped, float x, float y, float z, int duration); // 0x1DDA930A0AC38571 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | duration | int |
Facts
| Name | TASK_TURN_PED_TO_FACE_COORD |
|---|---|
| Hash | 0x1DDA930A0AC38571 |
| 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(0x1DDA930A0AC38571, -- TASK_TURN_PED_TO_FACE_COORD
PlayerPedId(), -- Ped ped
0.0, -- float x
0.0, -- float y
0.0, -- float z
0 -- int duration
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x1DDA930A0AC38571", // TASK_TURN_PED_TO_FACE_COORD
PlayerPedId(), // Ped ped
0.0, // float x
0.0, // float y
0.0, // float z
0 // int duration
);Function.Call((Hash)0x1DDA930A0AC38571, // TASK_TURN_PED_TO_FACE_COORD
API.PlayerPedId(), // Ped ped
0.0f, // float x
0.0f, // float y
0.0f, // float z
0 // int duration
);Related TASK natives
- TASK_TURN_PED_TO_FACE_ENTITY
- TASK_TURN_TO_FACE_CLOSEST_PED
- TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
- TASK_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD
- TASK_GO_TO_COORD_AND_AIM_AT_HATED_ENTITIES_NEAR_COORD_USING_COMBAT_STYLE
- TASK_GO_TO_COORD_WHILE_AIMING_AT_COORD
- TASK_GO_TO_COORD_WHILE_AIMING_AT_COORD_USING_COMBAT_STYLE
- TASK_PED_SLIDE_TO_COORD
- TASK_FLY_TO_COORD
- TASK_FOLLOW_NAV_MESH_TO_COORD
- TASK_FOLLOW_NAV_MESH_TO_COORD_ADVANCED
- TASK_FOLLOW_PAVEMENT_TO_COORD
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.