# ENTITY::SET_ENTITY_CAN_BE_TARGETED_WITHOUT_LOS

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

## Signature

```c
void SET_ENTITY_CAN_BE_TARGETED_WITHOUT_LOS(Entity entity, BOOL toggle);
```

## Parameters

- `entity` (`Entity`)
- `toggle` (`BOOL`)

## Returns

`void`

## Description

Sets whether the entity can be targeted without being in line-of-sight.

## Usage

### Lua

```lua
SetEntityCanBeTargetedWithoutLos(entity, toggle)

-- always available, by hash
Citizen.InvokeNative(0x6D09F32E284D0FB7, entity, toggle)
```

### JavaScript

```js
SetEntityCanBeTargetedWithoutLos(entity, toggle);

// by hash
Citizen.invokeNative('0x6D09F32E284D0FB7', entity, toggle);
```

### C#

```csharp
Function.Call((Hash)0x6D09F32E284D0FB7, entity, toggle);
```

*Sources: alloc8or RDR3 NativeDB.*
