getEntityLodDist
GET_ENTITY_LOD_DIST0x4159C2762B5791D6The 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.
getEntityLodDist(entity: Entity): numbergetEntityLodDist(entity: Entity): integerUsage
JavaScript
const result = getEntityLodDist(entity);Lua
local result = getEntityLodDist(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
int JavaScript number, Lua integerNotes
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