# ENTITY::SET_ENTITY_LOD_DIST

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

## Signature

```c
void SET_ENTITY_LOD_DIST(Entity entity, int value);
```

## Parameters

- `entity` (`Entity`)
- `value` (`int`)

## Returns

`void`

## Description

LOD distance can be 0 to 0xFFFF (higher values will result in 0xFFFF) as it is actually stored as a 16-bit value (aka uint16_t).

## Usage

### Lua

```lua
SetEntityLodDist(entity, value)

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

### JavaScript

```js
SetEntityLodDist(entity, value);

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

### C#

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

## See also

- [ENTITY::GET_ENTITY_LOD_DIST](https://natives.borderlinerp.com/natives/ENTITY/GET_ENTITY_LOD_DIST.md) — Returns the LOD distance of an entity.

*Sources: alloc8or RDR3 NativeDB.*
