setEntityLodDist
SET_ENTITY_LOD_DIST0x5927F96A78577363The GTA V native SET_ENTITY_LOD_DIST of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntityLodDist, in JavaScript and in Lua.
setEntityLodDist(entity: Entity, value: number): voidsetEntityLodDist(entity: Entity, value: integer)Usage
JavaScript
setEntityLodDist(entity, value);Lua
setEntityLodDist(entity, value)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
value | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
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).
Reference
- Namespace
- Entity ENTITY
- In the game
void SET_ENTITY_LOD_DIST(Entity entity, int value)- Hash
0x5927F96A78577363