GetWeatherTypes
getWeatherTypes
Available from 0.1.9. Use matching updated clients and server.
Server Lua. Returns the weather names supported by this running server.
Syntax
local names = getWeatherTypes()
Parameters and returns
No parameters. Returns a fresh 1-based array of 43 canonical strings in the current implementation. Aliases are not duplicate entries. Changing this table does not change the catalog or weather. Use names rather than persisting numeric array positions. Future versions may add entries; query instead of hard-coding the count.
Example
for _, name in ipairs(getWeatherTypes()) do
outputDebugString(name)
end
See Weather catalog for every name and alias, and Weather for server-authoritative usage and rendering limits.