getFogDistance | Multi Theft Auto: Wiki Skip to content

getFogDistance

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 will tell you what is the current fog render distance.

Note

The function will return false server-side if fog distance has not been set before the function is called.

Syntax

float getFogDistance ( )

Returns

  • float: value

Returns a float with the current fog render distance, false if the operation could not be completed.

Code Examples

shared

This example will demonstrate basic functionality of the function.

function fogDistance( )
outputChatBox( "Fog distance is: " .. tostring( getFogDistance( ) ) )
end
addCommandHandler( "fog", fogDistance )

See Also

World Functions