ResetVehiclesLODDistance

From Multi Theft Auto: Wiki
Revision as of 05:50, 20 December 2017 by XNikoXD (talk | contribs)
Jump to navigation Jump to 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).

Syntax

bool resetVehiclesLODDistance ( )

Returns

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

Example

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

See Also