getWeather | Multi Theft Auto: Wiki Skip to content

getWeather

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 returns the current Weather ID.

Syntax

getWeather ( )

Code Examples

server

This example outputs the current weather ID in that chat box.

local weatherID = getWeather()
outputChatBox ( "The current weather ID is " .. weatherID )

See Also

World Functions