getVehiclesLODDistance | Multi Theft Auto: Wiki Skip to content

getVehiclesLODDistance

Client-side
Server-side
Shared

Manual Review Required

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


Returns the distance of vehicles LOD.

Syntax

float,​ float getVehiclesLODDistance ( )

Returns

  • float: value1
  • float: value2

This example shows the lod distance of vehicles

Code Examples

shared

This example shows the lod distance of vehicles

addEventHandler("onClientResourceStart",resourceRoot,function()
local vehicles,planes_trains = getVehiclesLODDistance()
outputChatBox("general distance of most vehicles: "..math.floor(vehicles),0,255,0)
outputChatBox("distance of planes and trains: "..math.floor(planes_trains),0,255,0)
end)

See Also

World Functions