v1.0.12 minor
Scheduled server restarts, pre-restart weather events and countdown HUD
4changes

Scheduled server restarts, pre-restart weather events and countdown HUD
4changes

[02] Release
Adds an optional Scheduled Server Restarts system (Config.Restarts) with daily schedules, txAdmin sync, temporary pre-restart weather events like TSUNAMI, a customizable shutdown hook, a lightweight on-screen countdown HUD, the /weatherrestart admin command and server exports, translated across all 41 languages.
Config.Restarts defaults to enabled = false in config/config.lua. If you keep your own config/config.lua, copy the Config.Restarts block in to enable scheduled restarts.custom/server.lua gained the RestartServer(info) hook. If you edited it, copy your changes onto the new file.Config.Restarts syncs automatically with txAdmin scheduled restarts (txAdmin = true), and can trigger a temporary final weather event (such as TSUNAMI) 5 minutes before restart without saving it to the database./weatherrestart (permission command.weatherrestart) or the scheduleRestart, cancelRestart and getRestart server exports.Replace every file in the resource, except what you edited yourself:
fxmanifest.lua, config/config.lua, custom/server.lua, EXPORTS.md, README.mdclient/restart.lua (new), server/restart.lua (new)server/core.lua, server/weather.lualocales/ — every language changed. Re-apply any translation you edited.web/ — replace the whole folder.Added Config.Restarts (off by default) supporting daily restart times, a configurable warning window (default 30m), an optional pre-restart weather event (such as TSUNAMI 5m before restart, never saved to the database), txAdmin scheduled restart sync and a customizable RestartServer(info) shutdown hook in custom/server.lua.
Added a lightweight on-screen restart countdown HUD driven by a single GlobalState statebag so the timer runs locally with zero per-second server sync overhead.
Added the /weatherrestart command (permission command.weatherrestart) to inspect, schedule or cancel restarts, plus scheduleRestart(minutes), cancelRestart() and getRestart() server exports documented in EXPORTS.md and README.md.
Added restart timer and notification strings across all 41 languages.