TASK_TURN_TO_FACE_CLOSEST_PED
Tasks ped to turn toward the closest ped.
Signature
void TASK_TURN_TO_FACE_CLOSEST_PED(Ped ped, float p1, float p2, int p3); // 0x84179419DBDD36F2 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | p1 | float |
| 3 | p2 | float |
| 4 | p3 | int |
Facts
| Name | TASK_TURN_TO_FACE_CLOSEST_PED |
|---|---|
| Hash | 0x84179419DBDD36F2 |
| 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(0x84179419DBDD36F2, -- TASK_TURN_TO_FACE_CLOSEST_PED
PlayerPedId(), -- Ped ped
0.0, -- float p1
0.0, -- float p2
0 -- int p3
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x84179419DBDD36F2", // TASK_TURN_TO_FACE_CLOSEST_PED
PlayerPedId(), // Ped ped
0.0, // float p1
0.0, // float p2
0 // int p3
);Function.Call((Hash)0x84179419DBDD36F2, // TASK_TURN_TO_FACE_CLOSEST_PED
API.PlayerPedId(), // Ped ped
0.0f, // float p1
0.0f, // float p2
0 // int p3
);Related TASK natives
- TASK_TURN_PED_TO_FACE_COORD
- TASK_TURN_PED_TO_FACE_ENTITY
- TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
- TASK_PED_SLIDE_TO_COORD
- TASK_ARREST_PED
- TASK_COMBAT_ANIMAL_CHARGE_PED
- TASK_COMBAT_HATED_TARGETS_AROUND_PED
- TASK_COMBAT_HATED_TARGETS_AROUND_PED_TIMED
- TASK_COMBAT_PED
- TASK_COMBAT_PED_TIMED
- TASK_FLEE_PED
- TASK_FLEE_PED_VIA
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.