getCloudsEnabled | Multi Theft Auto: Wiki Skip to content

getCloudsEnabled

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 if clouds are enabled or disabled.

Syntax

bool getCloudsEnabled ( )

Returns

  • bool: value

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

Code Examples

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

See Also

World Functions