The Lab
TASK native

TASK_SEEK_CLEAR_LOS_TO_ENTITY

returns void5 paramsbuild 1207

Tasks ped to move until it has a clear line of sight to entity.

Signature

C
void TASK_SEEK_CLEAR_LOS_TO_ENTITY(Ped ped, Entity entity, float p2, float p3, float p4); // 0x8D7F2A63688C20A4 b1207

Parameters

#NameType
1pedPed
2entityEntity
3p2float
4p3float
5p4float

Facts

Facts about TASK_SEEK_CLEAR_LOS_TO_ENTITY
Name
TASK_SEEK_CLEAR_LOS_TO_ENTITY
Hash
0x8D7F2A63688C20A4
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(0x8D7F2A63688C20A4, -- TASK_SEEK_CLEAR_LOS_TO_ENTITY
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Entity entity
  0.0, -- float p2
  0.0, -- float p3
  0.0 -- float p4
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x8D7F2A63688C20A4", // TASK_SEEK_CLEAR_LOS_TO_ENTITY
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Entity entity
  0.0, // float p2
  0.0, // float p3
  0.0 // float p4
);
C#
Function.Call((Hash)0x8D7F2A63688C20A4, // TASK_SEEK_CLEAR_LOS_TO_ENTITY
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Entity entity
  0.0f, // float p2
  0.0f, // float p3
  0.0f // float p4
);
All TASK natives

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