SetWeather

From Onset Developer Wiki
SetWeather

Type: Function
Context: Client
Introduced: v1.0

Description

Set specified weather at client side.

Syntax

SetWeather(weather)

Parameters

  • weather
    The weather identifier. The value ranges between 1 to 10.

Return Value

  • This function does not return anything.

Example

-- Client side
AddRemoteEvent("SetWeather", function(weatherid)
    SetWeather(weatherid)
end)

-- Server side
AddCommand("we", function(playerid, weatherid)
    CallRemoteEvent(playerid, "SetWeather", weatherid)
end)

See also

__EDIT_ME__