setWeather | Multi Theft Auto: Wiki Skip to content

setWeather

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 sets the current weather to the given valid value. To change the weather gradually, see setWeatherBlended.

Syntax

setWeather ( )

Code Examples

server

This example will change the weather to foggy.

setWeather ( 9 )
outputChatBox ( "Weather changed to foggy!" )

See Also

World Functions