Skip to content

Retro Weather

This section is for integration work admins may want with external resources.

  • Trigger weather or time changes from admin jobs/events.
  • Sync weather state into custom UI/dispatch/phone dashboards.
  • Run scheduled event weather presets (server events, holidays, storms).
  • Restrict weather controls by framework role/group.
  • Zone authoring is done in the admin UI by drawing directly on the map (no manual polygon editing required for normal admin use).
EventTypeDescription
rs-weather:updateStateClientSent with combined weather/time payload. Useful for external UI overlays and client-side automations.
EventType
rs-weather:adminSnapshotClient
rs-weather:adminActionResultClient
EventPurpose
rs-weather:adminForceWeatherForce specific weather
rs-weather:adminSetScheduleSet weather schedule
rs-weather:adminReloadWeatherReload weather system
rs-weather:adminSetMovementModeSet weather movement mode
rs-weather:adminSetTimeSet server time
rs-weather:adminFreezeTimeFreeze/unfreeze time
rs-weather:adminSetTimeScaleSet time scale
rs-weather:adminSetMapSkinChange map skin
rs-weather:adminSetZonePolygonSet single zone polygon
rs-weather:adminSetAllZonePolygonsSet all zone polygons
rs-weather:adminNormalizeBordersNormalize zone borders
rs-weather:adminRequestSnapshotRequest state snapshot
CommandPurpose
rsweatheradminOpen admin panel
rsweather_dumpzonesDump zone data
rsweatherzonedebugDebug zone information
rsweather_markherePlace marker at current position
rsweather_clearmarkerClear placed marker
rsweather_previewPreview weather

Current file: server/sv_permissions.lua

From server/sv_time_realtime.js:

exports['rs_weather']:getRealtimeClock(zone)
exports['rs_weather']:isValidTimezone(zone)

These can be used by other server scripts that need timezone-aware clock data.