getClientWeather
exports["RiP-Environment"]:getClientWeather()
This function gets the current client weather. If weather zones are enabled, it will return it for the current zone
Returned Object
Name | Type | Explenation |
---|---|---|
Name | String | Weather type |
Label | String | Type label |
Icon | String | Weather icon |
Zone | String | Current weather zone |
ZoneLabel | String | Zone label |
Example
local weather = exports["RiP-Environment"]:getClientWeather()
print("current weather: "..weather.Label)