EntityClient

getEntityLodDist

GET_ENTITY_LOD_DIST0x4159C2762B5791D6

The GTA V native GET_ENTITY_LOD_DIST of the ENTITY namespace, as LS:MP client scripts call it: the global function getEntityLodDist, in JavaScript and in Lua.

SignatureJavaScript
getEntityLodDist(entity: Entity): number
SignatureLua
getEntityLodDist(entity: Entity): integer

Usage

JavaScript
const result = getEntityLodDist(entity);
Lua
local result = getEntityLodDist(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns the LOD distance of an entity.

Reference

Namespace
Entity ENTITY
In the game
int GET_ENTITY_LOD_DIST(Entity entity)
Hash
0x4159C2762B5791D6

Open in the interactive natives reference