SetWeather

From GTA Network Wiki
Jump to: navigation, search

SetWeather
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Sets the weather. Weather types.

Syntax

void NAPI.World.SetWeather(string weather);
void NAPI.World.SetWeather(Weather weather); //Preferred

Required Arguments

  • weather: This parameter input should be in string or Weather type.

Usage example(s)

[Command("clrweather", Description = "Clears the weather")]
public void Clear_Weather(Client player)
{
    NAPI.World.SetWeather(Weather.CLEAR);
}

Changelog

Version Description
1.0 Release.

References