TasksClient

taskTurnPedToFaceEntity

TASK_TURN_PED_TO_FACE_ENTITY0x5AD23D40115353AC

The 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.

SignatureJavaScript
taskTurnPedToFaceEntity(ped: Ped, entity: Entity, duration: number): void
SignatureLua
taskTurnPedToFaceEntity(ped: Ped, entity: Entity, duration: integer)

Usage

JavaScript
taskTurnPedToFaceEntity(ped, entity, duration);
Lua
taskTurnPedToFaceEntity(ped, entity, duration)

Parameters

ParameterTypeJavaScriptLuaDescription
pedPednumberinteger
entityEntitynumberinteger
durationintnumberintegerthe 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

Open in the interactive natives reference