getFogDistance | Multi Theft Auto: Wiki Skip to content

getFogDistance

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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

getFogDistance ( )

Code Examples

server

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