engineGetModelLODDistance | Multi Theft Auto: Wiki Skip to content

engineGetModelLODDistance

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function gets the LOD distance for any object / model ID.

Syntax

engineGetModelLODDistance ( )

Code Examples

client

This example calculates the actual LOD distance by taking into account the Video tab 'Draw distance' setting

local LODDistance = engineGetModelLODDistance( 1337 )
local actualLODDistance = math.min( 300, LODDistance * ( dxGetStatus().SettingDrawDistance / 100 + 1 ) )

See Also

Engine Functions
Engine Elements