Difference between revisions of "GetCloudsEnabled"

From Multi Theft Auto: Wiki
(added getCloudsEnabled)
 
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
==Syntax==  
 
==Syntax==  
 
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
bool getCloudsEnabled( )
+
bool getCloudsEnabled ()
 
</syntaxhighlight>  
 
</syntaxhighlight>  
  
Line 13: Line 12:
  
 
==Example==  
 
==Example==  
<section name="Server" class="server" show="true">
 
This
 
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
--TODO
+
function areCloudsVisible()
 +
  if getCloudsEnabled() then
 +
    outputChatBox("Clouds are visible.")
 +
  else
 +
    outputChatBox("Clouds are not visible.")
 +
  end
 +
end
 +
addCommandHandler("clouds", areCloudsVisible)
 
</syntaxhighlight>
 
</syntaxhighlight>
</section>
+
 
 +
==See Also==
 +
{{World functions}}
 +
 
 +
[[ru:getCloudsEnabled]]

Latest revision as of 18:34, 7 March 2010