The Lab
ENTITY native

HAS_ENTITY_CLEAR_LOS_TO_COORD

returns BOOL5 paramsbuild 1207

Returns true if the entity has a clear line of sight to the given coordinates.

Signature

C
BOOL HAS_ENTITY_CLEAR_LOS_TO_COORD(Entity entity, float x, float y, float z, int flags); // 0x0C9DBF48C6BA6E4C b1207

Parameters

#NameType
1entityEntity
2xfloat
3yfloat
4zfloat
5flagsint

Facts

Facts about HAS_ENTITY_CLEAR_LOS_TO_COORD
Name
HAS_ENTITY_CLEAR_LOS_TO_COORD
Hash
0x0C9DBF48C6BA6E4C
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x0C9DBF48C6BA6E4C, -- HAS_ENTITY_CLEAR_LOS_TO_COORD
  PlayerPedId(), -- Entity entity
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0 -- int flags
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x0C9DBF48C6BA6E4C", // HAS_ENTITY_CLEAR_LOS_TO_COORD
  PlayerPedId(), // Entity entity
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0, // int flags
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x0C9DBF48C6BA6E4C, // HAS_ENTITY_CLEAR_LOS_TO_COORD
  API.PlayerPedId(), // Entity entity
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0 // int flags
);
All ENTITY natives

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