TasksClient

taskLookAtEntity

TASK_LOOK_AT_ENTITY0x69F4BE8C8CC4796C

The GTA V native TASK_LOOK_AT_ENTITY of the TASK namespace, as LS:MP client scripts call it: the global function taskLookAtEntity, in JavaScript and in Lua.

SignatureJavaScript
taskLookAtEntity(
  ped: Ped,
  lookAt: Entity,
  duration: number,
  flags: number,
  priority: number
): void
SignatureLua
taskLookAtEntity(
  ped: Ped,
  lookAt: Entity,
  duration: integer,
  flags: integer,
  priority: integer
)

Usage

JavaScript
taskLookAtEntity(ped, lookAt, duration, flags, priority);
Lua
taskLookAtEntity(ped, lookAt, duration, flags, priority)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
lookAtEntitynumberinteger
durationintnumberinteger
flagsintnumberinteger
priorityintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

For flags, please refer to taskLookAtCoord.

Reference

Namespace
Tasks TASK
In the game
void TASK_LOOK_AT_ENTITY(Ped ped, Entity lookAt, int duration, int flags, int priority)
Hash
0x69F4BE8C8CC4796C

Open in the interactive natives reference