setVehiclesLODDistance | Multi Theft Auto: Wiki Skip to content

setVehiclesLODDistance

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.


Sets the distance of vehicles LOD.

Syntax

​bool setVehiclesLODDistance ( ​float vehiclesDistance, [ ​float trainsAndPlanesDistance = vehiclesDistance * 2.14 ] )
Required Arguments
  • vehiclesDistance: general distance used for most vehicles, this value is clamped to 0 – 500
Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use.

  • trainsAndPlanesDistance (default: vehiclesDistance * 2.14): distance used for trains and planes, this value is clamped to 0 – 500

Returns

  • bool: value

This function returns true if arguments are valid. Returns false otherwise.

Code Examples

shared
addEventHandler("onClientResourceStart",resourceRoot,function()
setVehiclesLODDistance(10)
end)

See Also

World Functions