HAS_ENTITY_CLEAR_LOS_TO_COORD
Returns true if the entity has a clear line of sight to the given coordinates.
Signature
BOOL HAS_ENTITY_CLEAR_LOS_TO_COORD(Entity entity, float x, float y, float z, int flags); // 0x0C9DBF48C6BA6E4C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | flags | int |
Facts
| 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.
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// 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) {
// ...
}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
);Related ENTITY natives
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT
- HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY
- HAS_ENTITY_COLLIDED_WITH_ANYTHING
- HAS_ENTITY_ANIM_FINISHED
- HAS_ENTITY_BEEN_DAMAGED_BY_ANY_OBJECT
- HAS_ENTITY_BEEN_DAMAGED_BY_ANY_PED
- HAS_ENTITY_BEEN_DAMAGED_BY_ANY_VEHICLE
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- ATTACH_ENTITY_TO_ENTITY
- ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
- CLEAR_ENTITY_LAST_DAMAGE_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.