RedM Natives

SET_ENTITY_LOD_DIST

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

Hash0x5FB407F0A7C877BF
Runtime nameSetEntityLodDist
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x5927F96A78577363

Signature

void SET_ENTITY_LOD_DIST(Entity entity, int value);

Parameters

NameTypeDescription
entityEntity—
valueint—

Returns void

Description

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

Usage

Lua
SetEntityLodDist(entity, value)

-- always works, by hash
Citizen.InvokeNative(0x5FB407F0A7C877BF, entity, value)
JavaScript and C#
JavaScript
SetEntityLodDist(entity, value);

// by hash
Citizen.invokeNative('0x5FB407F0A7C877BF', entity, value);
C#
Function.Call((Hash)0x5FB407F0A7C877BF, entity, value);

See also

Sources

alloc8or RDR3 NativeDB

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