Skip to content

getVehiclesLODDistance

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

This example shows the lod distance of vehicles

  • float: value1
  • float: value2

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