resetFogDistance | Multi Theft Auto: Wiki Skip to content

resetFogDistance

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


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

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

  • bool: value

Returns true if operation was successful, false otherwise.

Code Examples

shared

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

World Functions