SetVehiclesLODDistance

From Multi Theft Auto: Wiki
Revision as of 13:24, 5 August 2021 by Pawelo (talk | contribs) (Mark optional params in syntax)
Jump to navigation Jump to search

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

  • trainsAndPlanesDistance: distance used for trains and planes, this value is clamped to 0 – 500

Example

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

See Also