EntityClient

setEntityLodDist

SET_ENTITY_LOD_DIST0x5927F96A78577363

The 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.

SignatureJavaScript
setEntityLodDist(entity: Entity, value: number): void
SignatureLua
setEntityLodDist(entity: Entity, value: integer)

Usage

JavaScript
setEntityLodDist(entity, value);
Lua
setEntityLodDist(entity, value)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
valueintnumberinteger

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

Open in the interactive natives reference