Weather Forecast System [STANDALONE/QB/ESX]
Bring realistic, dynamic weather and time control to your FiveM server with this all in one script. Perfect for any server that want immersive weather cycles, Time cycles / Time control, forecast realism, and more. This script is being actively used in large servers, Thanks to Silver State Roleplay for assisting in improving and testing the script.
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
Enable or disable rain completely
Rain chance percentage and fog chance percentage
Enable or disable snow in forecast
Blackout toggles and flash intervals
Enable or disable time control completely
Time duration for manual or automatic time changing
Configurable temperature ranges and wind speed ranges
Discord role IDs for permissions
Chat suggestions for
/weather,/forecast,/time,/blackout
Commands
/weather [type]→ Change weather (with permissions)/forecast→ Show upcoming forecast (UI)/time [hour/minute/morning/evening]→ Change server time (with permissions)/blackout→ Trigger statewide blackout (with permissions)/togglesnow→ Enable or disable snow in forecast (with permissions)/resyncweather→ resyncs only the person who runs it (any player can use this)/resyncweather all→ resyncs everyone's weather (with permissions)/weather→ Opens entire weather UI. UI Controls Weather, Time, Local resync, Server wide resync and blackout control (with permissions)/forecast→Opens entire forecast & local resync UI
Config Details
- 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,
- Chat suggestion for /time (configurable to be on or off),
- 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 5% chance of rain, thunder or clearing,
- Configure what the chance of fog will be on the forecast. Default is 4% 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:
UI / HUD




Blackout Notifications

Blackout Mode

