GetCloudsEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 25: Line 25:
==See Also==
==See Also==
{{World functions}}
{{World functions}}
[[ru:getCloudsEnabled]]

Latest revision as of 18:34, 7 March 2010

This function will tell you if clouds are enabled or disabled.

Syntax

bool getCloudsEnabled ()

Returns

Returns true if the clouds are enabled or false if clouds are disabled.

Example

function areCloudsVisible()
  if getCloudsEnabled() then
    outputChatBox("Clouds are visible.")
  else
    outputChatBox("Clouds are not visible.")
  end
end
addCommandHandler("clouds", areCloudsVisible)

See Also