# ENTITY::GET_ENTITY_LOD_DIST

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

## Signature

```c
int GET_ENTITY_LOD_DIST(Entity entity);
```

## Parameters

- `entity` (`Entity`)

## Returns

`int`

## Description

Returns the LOD distance of an entity.

## Usage

### Lua

```lua
local retval = GetEntityLodDist(entity)

-- always available, by hash
local retval = Citizen.InvokeNative(0xDF240D0C2A948683, entity, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetEntityLodDist(entity);

// by hash
const retval = Citizen.invokeNative('0xDF240D0C2A948683', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xDF240D0C2A948683, entity);
```

## See also

- [ENTITY::SET_ENTITY_LOD_DIST](https://natives.borderlinerp.com/natives/ENTITY/SET_ENTITY_LOD_DIST.md) — 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).

*Sources: alloc8or RDR3 NativeDB.*
