From Multi Theft Auto: Wiki
Jump to: navigation, search

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

Before submitting check out Editing Guidelines Script Examples.

Resets the distance of vehicles LOD to default. Default values depends on client setting. If client has enabled high detail vehicles in video options, value will be reset to (500, 500) - otherwise to (70, 150). You can check value of this option using dxGetStatus (SettingHighDetailVehicles).


bool resetVehiclesLODDistance ( )


Returns true if the ambient sounds were reset, false otherwise.


function resetLOD() 
	resetVehiclesLODDistance() --This will reset the LOD distance
addCommandHandler("resetlod", resetLOD) -- If you use this command it would trigger the resetLOD function

See Also