SetVehiclesLODDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(→‎See Also: +engineGet/SetModelLODDistance)
(Example)
Line 12: Line 12:
===Optional Arguments===
===Optional Arguments===
*'''trainsAndPlanesDistance:''' distance used for trains and planes, this value is clamped to 0 – 500
*'''trainsAndPlanesDistance:''' distance used for trains and planes, this value is clamped to 0 – 500
==Example==
<syntaxhighlight lang="lua">
addEventHandler("onClientResourceStart",resourceRoot,function()
setVehiclesLODDistance(10)
end)
</syntaxhighlight>


==See Also==
==See Also==

Revision as of 12:16, 17 July 2017

Accessories-text-editor.png Script Example Missing Function SetVehiclesLODDistance needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

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