# ENTITY::HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT

- **Hash:** `0xE88F19660651D566`
- **Namespace:** ENTITY
- **Runtime name (Lua/JS):** `HasEntityClearLosToEntityInFront`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ENTITY/HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT

## Signature

```c
BOOL HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT(Entity entity1, Entity entity2, int traceType);
```

## Parameters

- `entity1` (`Entity`)
- `entity2` (`Entity`)
- `traceType` (`int`)

## Returns

`BOOL`

## Description

Has the entity1 got a clear line of sight to the other entity2 from the direction entity1 is facing.

## Usage

### Lua

```lua
local retval = HasEntityClearLosToEntityInFront(entity1, entity2, traceType)

-- always available, by hash
local retval = Citizen.InvokeNative(0xE88F19660651D566, entity1, entity2, traceType, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = HasEntityClearLosToEntityInFront(entity1, entity2, traceType);

// by hash
const retval = Citizen.invokeNative('0xE88F19660651D566', entity1, entity2, traceType, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xE88F19660651D566, entity1, entity2, traceType);
```

*Sources: alloc8or RDR3 NativeDB.*
