setCloudsEnabled | Multi Theft Auto: Wiki Skip to content

setCloudsEnabled

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 enable or disable clouds. This is useful for race maps which are placed high up as clouds can cause low FPS.

Syntax

setCloudsEnabled ( )

Code Examples

server

This example disables clouds for all players when resource starts.

function onResourceStart()
setCloudsEnabled(false)
end
addEventHandler("onResourceStart", resourceRoot, onResourceStart)

See Also

World Functions