GetFogDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
float getFogDistance ()
float getFogDistance ()
</syntaxhighlight>
==Example==
<syntaxhighlight lang="lua">
function fogDistance()
outputChatBox("Your fog distance is: ".. getFogDistance())
end
addCommandHandler("fog", fogDistance)
</syntaxhighlight>
</syntaxhighlight>

Revision as of 06:12, 10 April 2014

Syntax

float getFogDistance ()

Example

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