Retro Weather
This section is for integration work admins may want with external resources.
Typical Integrations
Section titled โTypical Integrationsโ- 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).
Events You Can Hook
Section titled โEvents You Can HookโState Broadcast
Section titled โState Broadcastโ| Event | Type | Description |
|---|---|---|
rs-weather:updateState | Client | Sent with combined weather/time payload. Useful for external UI overlays and client-side automations. |
Admin Snapshot/Event Responses
Section titled โAdmin Snapshot/Event Responsesโ| Event | Type |
|---|---|
rs-weather:adminSnapshot | Client |
rs-weather:adminActionResult | Client |
Admin Action Events (Server Handlers)
Section titled โAdmin Action Events (Server Handlers)โ| Event | Purpose |
|---|---|
rs-weather:adminForceWeather | Force specific weather |
rs-weather:adminSetSchedule | Set weather schedule |
rs-weather:adminReloadWeather | Reload weather system |
rs-weather:adminSetMovementMode | Set weather movement mode |
rs-weather:adminSetTime | Set server time |
rs-weather:adminFreezeTime | Freeze/unfreeze time |
rs-weather:adminSetTimeScale | Set time scale |
rs-weather:adminSetMapSkin | Change map skin |
rs-weather:adminSetZonePolygon | Set single zone polygon |
rs-weather:adminSetAllZonePolygons | Set all zone polygons |
rs-weather:adminNormalizeBorders | Normalize zone borders |
rs-weather:adminRequestSnapshot | Request state snapshot |
Admin Commands
Section titled โAdmin Commandsโ| Command | Purpose |
|---|---|
rsweatheradmin | Open admin panel |
rsweather_dumpzones | Dump zone data |
rsweatherzonedebug | Debug zone information |
rsweather_markhere | Place marker at current position |
rsweather_clearmarker | Clear placed marker |
rsweather_preview | Preview weather |
Permissions
Section titled โPermissionsโCurrent file: server/sv_permissions.lua
External Timezone Exports
Section titled โExternal Timezone Exportsโ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.