TASK_TURN_PED_TO_FACE_ENTITY
Tasks ped to turn toward targetEntity, for up to duration milliseconds.
Signature
void TASK_TURN_PED_TO_FACE_ENTITY(Ped ped, Entity targetEntity, int duration, float p3, float p4, float p5); // 0x5AD23D40115353AC b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | targetEntity | Entity |
| 3 | duration | int |
| 4 | p3 | float |
| 5 | p4 | float |
| 6 | p5 | float |
Facts
| Name | TASK_TURN_PED_TO_FACE_ENTITY |
|---|---|
| Hash | 0x5AD23D40115353AC |
| 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(0x5AD23D40115353AC, -- TASK_TURN_PED_TO_FACE_ENTITY
PlayerPedId(), -- Ped ped
PlayerPedId(), -- Entity targetEntity
0, -- int duration
0.0, -- float p3
0.0, -- float p4
0.0 -- float p5
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x5AD23D40115353AC", // TASK_TURN_PED_TO_FACE_ENTITY
PlayerPedId(), // Ped ped
PlayerPedId(), // Entity targetEntity
0, // int duration
0.0, // float p3
0.0, // float p4
0.0 // float p5
);Function.Call((Hash)0x5AD23D40115353AC, // TASK_TURN_PED_TO_FACE_ENTITY
API.PlayerPedId(), // Ped ped
API.PlayerPedId(), // Entity targetEntity
0, // int duration
0.0f, // float p3
0.0f, // float p4
0.0f // float p5
);Related TASK natives
- TASK_TURN_PED_TO_FACE_COORD
- TASK_TURN_TO_FACE_CLOSEST_PED
- TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_ENTITY_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- TASK_FOLLOW_ENTITY_WHILE_AIMING_AT_ENTITY
- TASK_FOLLOW_TO_OFFSET_OF_ENTITY
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY
- TASK_GO_TO_COORD_WHILE_AIMING_AT_ENTITY_USING_COMBAT_STYLE
- TASK_GO_TO_ENTITY
- TASK_PED_SLIDE_TO_COORD
- TASK_SEEK_CLEAR_LOS_TO_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.