SetVehiclesLODDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 8: Line 8:
bool setVehiclesLODDistance(float vehiclesDistance [, float trainsAndPlanesDistance = vehiclesDistance * 2.14])
bool setVehiclesLODDistance(float vehiclesDistance [, float trainsAndPlanesDistance = vehiclesDistance * 2.14])
</syntaxhighlight>
</syntaxhighlight>
===Required Arguments===  
===Required Arguments===  
*'''vehiclesDistance:''' general distance used for most vehicles, this value is clamped to 0 – 500
*'''vehiclesDistance:''' general distance used for most vehicles, this value is clamped to 0 – 500
===Optional Arguments===
 
===Optional Arguments===  
{{OptionalArg}}
*'''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



Revision as of 13:26, 5 August 2021

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. For more information on optional arguments, see 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