SetWeather: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 4: Line 4:


==Syntax==
==Syntax==
bool [[setWeather]] ( int id )
<syntaxhighlight lang="lua">bool setWeather ( int id )</syntaxhighlight>


===Required Arguments===
===Required Arguments===
*'''id''': The new weather id (range 0-19)
<syntaxhighlight lang="lua">*'''id''': The new weather id (range 0-19)</syntaxhighlight>


==Example==
==Example==
  [[setWeather]] ( 9, 9 )
  [[setWeather]] ( 9, 9 )
  [[serverChat]] ( "Weather changed to foggy!" )
  [[serverChat]] ( "Weather changed to foggy!" )

Revision as of 02:24, 18 May 2006

Description

This function sets the current weather id to the given value.

Syntax

bool setWeather ( int id )

Required Arguments

*'''id''': The new weather id (range 0-19)

Example

setWeather ( 9, 9 )
serverChat ( "Weather changed to foggy!" )