[PAID] Weather and time system

Features

  • Dynamic Weather Cycle – Smooth transitions with customizable cycle times.
  • Configurable Forecast – Control rain chance, fog chance, snow availability, and more.
  • Realistic Conditions – Temperature ranges, wind speeds, and “feels like” calculations for each weather type.
  • Forecast System – Players can view upcoming weather predictions via a clean forecast UI.
  • Time Control – Sync server time, smooth transitions, and optional freeze/unfreeze time per player.
  • Blackout Events – Toggle statewide blackouts, complete with flashing lights and notifications.
  • Discord Integration – Restrict commands by Discord roles (perfect for staff permissions).
  • Fully Configurable – Every aspect is adjustable in config.lua (chances, durations, permissions, defaults).

Config Options

  • Default weather and time on server start
  • Weather cycle delay and transition speed
  • Rain chance percentage and fog chance percentage
  • Enable or disable snow in forecast
  • Blackout toggles and flash intervals
  • Time freeze toggle per client
  • Discord role IDs for permissions
  • Chat suggestions for /weather, /forecast, /time, /blackout

Commands

  • /weather [type] → Change weather (staff only)
  • /forecast → Show upcoming forecast (UI)
  • /time [hour/minute/morning/evening] → Change server time
  • /blackout → Trigger statewide blackout (staff only)
  • /togglesnow → Enable or disable snow in forecast (staff only)
  • /freezetime → Locally freeze or unfreeze time

Config

TIME

  • Ability to fully disable / enable in-game time control. Default False = (Enabled),
  • Ability to modify in-game Hour and In-game minute upon resource start. Default 7 Hours 0 Minutes,
  • Ability to modify smoothness of manual time transitions
  • Configure minute duration, How many seconds for it to cycle to one(1) in-game minute. Default 7 Seconds,
  • /freezetime, this command will freeze time ONLY for the player, time continues as normal for all other players. When using /time again the time will revert to the server sided time,
  • Chat suggestion for /time (configurable to be on or off),
  • BLACKOUT
  • Players with permission can use /blackout to cause a state wide blackout,
  • Blackout does not cause vehicle lighting to turn off, this includes Emergency vehicles,
  • Players with permission can use /blackout again to bring the city back to normal,
  • Using /blackout creates an advertisement for the entire city about then power outage and the power outage being resolved,
  • Using /blackout again causes all lights (not vehicles) to flash on and off 3 times before staying on,
  • Chat suggestion for /blackout (configurable to be on or off),

WEATHER

  • Dynamic weather changes,
  • Snow weather configurations,
  • Snow can be toggled in-game by using /snowforecast (this will bring snow to the forecast),
  • Weather cycle time, This allows you to add how long it takes before the weather fully changes. Currently it changes smoothly over 60 seconds,
  • Weather cycle delay, You can change how long it takes before the script automatically cycles to the next weather on the forecast. Default is 30 minutes,
  • Configure if you want rain to show up on the forecast,
  • Configure what the chance of rain will be on the forecast. Default is 15% chance of rain, thunder or clearing,
  • Configure what the chance of fog will be on the forecast. Default is 10% chance of fog.
  • Configure temperature ranges on the forecast ex. Clear will have a temperature between 60 → 80, Extra sunny will have a temperature of 70 → 90 etc. Config provided below (these are just for show,
  • Configure wing speeds on the forecast ex. Rain will have wind speeds of 5 → 10, extrasunny will have wind speeds of 3 → 6 etc. (these are just for show),
  • Chat suggestion for /weather and /forecast (configurable to be on or off)

This script adds far more depth than basic weather scripts by introducing forecasts, variable temperatures, wind speeds, and role-based access. It is lightweight, highly configurable, and designed to run smoothly on any roleplay server.

Preview:
Purchase: https://averis-scripts.tebex.io
Showcase: Weather Forecast Showcase
Discord: Averis Scripts

During Idle

45357106d06bd0a7ad23fba1410d2a5678bb936a.PNG

During Use

cd819379956a931bbd46563064bc3389d7c09994.PNG

Forecast HUD/UI

f470f7d1a3332f31891db6131f91311d622643f9.png

Blackout Notifications

7d2f66d658cb052acf070e649054c5c8e869d258.png

Blackout Mode

b34bd11aa268b277d6b04a4a8dd2e5f558fbb344.png

Config File

880736ab66342f19dc6fb469b5dc611348e55a8e.PNG

Code is accessible Config.lua
Subscription-based No
Lines (approximately) 1000+
Requirements None
Support Yes

Updates:

  • Fixed server side weather syncing between all players

Update: 11/03/2025

  • Join Push (Server-side),

When someone joins the server, the server immediately pushes the current weather and time to them so they match everyone else’s state from the start.

  • Heartbeat Sync (Server-side),

Every 30 seconds, the server re-broadcasts the current weather/time to all players, forcing anyone out of sync back to the correct state.

  • Client Watchdog (Client-side),

Each client remembers the last server-approved weather and every 20 seconds, it re-applies that weather locally. This overwrites any rogue changes made by other resources or mod menus (like Menyoo, Simple Trainer, etc.).

  • /resyncweather - resyncs only the person who runs it (any player can use this).,

  • /resyncweather all - resyncs everyone, but staff-only,

  • Halloween weather type and pumkin Discord icon for the embedded forecast and current weather display.,

  • Changed notifications to chat box