ResetFogDistance

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function resets the fog render distance to its default state.

[[{{{image}}}|link=|]] Note: The function will reset the fog render distance to false server-side, as there is no default value to begin with.

Syntax

bool resetFogDistance ( )

Returns

Returns true if operation was successful, false otherwise.

Example

This example will demonstrate basic functionality of the function.

setFogDistance( 500 )
outputDebugString( "Fog render distance: " .. getFogDistance( ) )
resetFogDistance( )
outputDebugString( "New fog render distance: " .. tostring( getFogDistance( ) ) )

See Also