TASK_TURN_PED_TO_FACE_ENTITY
Hash
0x5AD23D40115353ACRuntime name
TaskTurnPedToFaceEntityNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x5AD23D40115353ACSignature
void TASK_TURN_PED_TO_FACE_ENTITY(Ped ped, Entity targetEntity, int duration, float p3, float p4, float p5);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
targetEntity | Entity | — |
duration | int | — |
p3 | float | — |
p4 | float | — |
p5 | float | — |
Returns void
Description
duration: the amount of time in milliseconds to do the task. -1 will keep the task going until either another task is applied, or CLEAR_ALL_TASKS() is called with the ped
Usage
TaskTurnPedToFaceEntity(ped, targetEntity, duration, p3, p4, p5)
-- always works, by hash
Citizen.InvokeNative(0x5AD23D40115353AC, ped, targetEntity, duration, p3, p4, p5)JavaScript and C#
TaskTurnPedToFaceEntity(ped, targetEntity, duration, p3, p4, p5);
// by hash
Citizen.invokeNative('0x5AD23D40115353AC', ped, targetEntity, duration, p3 + 0.0000001, p4 + 0.0000001, p5 + 0.0000001);Function.Call((Hash)0x5AD23D40115353AC, ped, targetEntity, duration, p3, p4, p5);- 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.