RedM Natives

GET_ENTITY_LOD_DIST

Returns the LOD distance of an entity.

Hash0xDF240D0C2A948683
Runtime nameGetEntityLodDist
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x4159C2762B5791D6

Signature

int GET_ENTITY_LOD_DIST(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns int

Description

Returns the LOD distance of an entity.

Usage

Lua
local retval = GetEntityLodDist(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0xDF240D0C2A948683, entity, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetEntityLodDist(entity);

// by hash
const retval = Citizen.invokeNative('0xDF240D0C2A948683', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xDF240D0C2A948683, entity);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.