GET_ENTITY_LOD_DIST
Returns the LOD distance of an entity.
Hash
0xDF240D0C2A948683Runtime name
GetEntityLodDistNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x4159C2762B5791D6Signature
int GET_ENTITY_LOD_DIST(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns int
Description
Returns the LOD distance of an entity.
Usage
local retval = GetEntityLodDist(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xDF240D0C2A948683, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetEntityLodDist(entity);
// by hash
const retval = Citizen.invokeNative('0xDF240D0C2A948683', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xDF240D0C2A948683, entity);See also
SET_ENTITY_LOD_DISTLOD 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).
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.