# STREAMING::SET_FOCUS_ENTITY

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

## Signature

```c
void SET_FOCUS_ENTITY(Entity entity);
```

## Parameters

- `entity` (`Entity`)

## Returns

`void`

## Description

It seems to make the entity's coords mark the point from which LOD-distances are measured. In my testing, setting a vehicle as the focus entity and moving that vehicle more than 300 distance units away from the player will make the level of detail around the player go down drastically (shadows disappear, textures go extremely low res, etc). The player seems to be the default focus entity.

## Usage

### Lua

```lua
SetFocusEntity(entity)

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

### JavaScript

```js
SetFocusEntity(entity);

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
