ResetVehiclesLODDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(→‎See Also: +engineGet/SetModelLODDistance)
mNo edit summary
Line 7: Line 7:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool resetVehiclesLODDistance ( )
bool resetVehiclesLODDistance ( )
</syntaxhighlight>
===Returns===
Returns true if the ambient sounds were reset, false otherwise.
==Example==
<syntaxhighlight lang="lua">
function resetLOD()
resetVehiclesLODDistance() --This will reset the LOD distance
end
addCommandHandler("resetlod", resetLOD) -- If you use this command it would trigger the resetLOD function
</syntaxhighlight>
</syntaxhighlight>



Revision as of 05:50, 20 December 2017

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