taskTurnPedToFaceEntity
TASK_TURN_PED_TO_FACE_ENTITY0x5AD23D40115353ACThe GTA V native TASK_TURN_PED_TO_FACE_ENTITY of the TASK namespace, as LS:MP client scripts call it: the global function taskTurnPedToFaceEntity, in JavaScript and in Lua.
taskTurnPedToFaceEntity(ped: Ped, entity: Entity, duration: number): voidtaskTurnPedToFaceEntity(ped: Ped, entity: Entity, duration: integer)Usage
JavaScript
taskTurnPedToFaceEntity(ped, entity, duration);Lua
taskTurnPedToFaceEntity(ped, entity, duration)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
ped | Ped | number | integer | |
entity | Entity | number | integer | |
duration | int | number | integer | 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 |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Tasks TASK
- In the game
void TASK_TURN_PED_TO_FACE_ENTITY(Ped ped, Entity entity, int duration)- Hash
0x5AD23D40115353AC