The Lab
TASK native

TASK_LOOK_AT_ENTITY

returns void6 paramsbuild 1207

Tasks ped to look at lookAtTarget for duration milliseconds.

Signature

C
void TASK_LOOK_AT_ENTITY(Ped ped, Entity lookAtTarget, int duration, int p3, int p4, int p5); // 0x69F4BE8C8CC4796C b1207

Parameters

#NameType
1pedPed
2lookAtTargetEntity
3durationint
4p3int
5p4int
6p5int

Facts

Facts about TASK_LOOK_AT_ENTITY
Name
TASK_LOOK_AT_ENTITY
Hash
0x69F4BE8C8CC4796C
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x69F4BE8C8CC4796C, -- TASK_LOOK_AT_ENTITY
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Entity lookAtTarget
  0, -- int duration
  0, -- int p3
  0, -- int p4
  0 -- int p5
)
JavaScript
Citizen.invokeNative("0x69F4BE8C8CC4796C", // TASK_LOOK_AT_ENTITY
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Entity lookAtTarget
  0, // int duration
  0, // int p3
  0, // int p4
  0 // int p5
);
C#
Function.Call((Hash)0x69F4BE8C8CC4796C, // TASK_LOOK_AT_ENTITY
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Entity lookAtTarget
  0, // int duration
  0, // int p3
  0, // int p4
  0 // int p5
);
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.