On a FiveM server, a weather sync script decides the weather and the time. The server picks them and sends them to every player, so everyone sees the same rain at the same moment. Which script you use depends on your framework:
- Qbox: Renewed-Weathersync, already in the Qbox recipe.
- QBCore: qb-weathersync, already in the QBCore recipe.
- ESX Legacy or no framework: install Renewed-Weathersync yourself (it needs ox_lib).
- vMenu: has its own weather and time options in the menu. See vMenu and EasyAdmin.
In December 2026, Renewed-Weathersync 1.1.8 (December 2025) and qb-weathersync 2.3.0 are the newest versions. You'll still find vSync in old guides, but it has been archived since 2018: don't use it.
One weather script at a time. Two scripts that both set the weather make it jump back and forth. Renewed-Weathersync also presents itself as
qb-weathersync, so scripts that ask for qb-weathersync work with it. Switching? Remove the old script.
Installing Renewed-Weathersync (ESX or standalone)
- Make sure ox_lib is installed, including its four
add_acelines. - Download
Renewed-Weathersync.zipfrom the newest release on GitHub. - In the game panel, open Files, go to resources/[standalone] (or another folder of your own), upload the zip with Upload, click the three dots ... and choose Unarchive. Delete the .zip file.
- Go to server.cfg editor, click Manual Edit and add these lines below
ensure ox_lib. Click Save and restart your server.
setr weather_disablecd true
ensure Renewed-Weathersync
weather_disablecd turns off the built-in support for cd_easytime, which you don't need unless you used that script before. The Qbox recipe already has this line.
Commands in Renewed-Weathersync
The commands are for group.admin (see Admins and permissions). In the game you type them with a / in the chat, in the Live Console of txAdmin without the /.
/time 14 30: sets the time to 14:30. The minutes are optional./morning,/noon,/eveningand/night: 9:00, 12:00, 18:00 and 23:00./freezetime 1: freezes the time./freezetime 0lets it run again./timescale 6000: how many milliseconds an in-game minute takes. Only values above 2000 work; higher means longer days./weather: opens a menu with the weather forecast (only in the game). Pick a weather period to change the type or the duration, or to remove it./blackout: switches the power off or on in the whole city.
These changes are not saved: after a restart the settings from the config apply again.
Settings in the config
Renewed-Weathersync has two files in Renewed-Weathersync/config. Edit them through Files and restart your server afterwards.
In time.lua:
timeScale = 4000: milliseconds per in-game minute. 2000 is normal GTA speed, a day of 48 minutes. The default 4000 gives a day of 96 minutes.startUpTime: the time after a restart, 12:00 by default.useRealTime = true: uses the clock of the server instead.useNightScaleandtimeScaleNight: a different speed at night, for example longer nights.
In weather.lua:
weatherCycletimer = 30: minutes between weather changes.decemberSnow = true: in December it snows all day, every day. Don't want snow? Set it tofalse.useScheduledWeather = true: in the last 15 minutes before a scheduled restart in txAdmin it turns overcast, then rain, then thunder.staticWeather: the chance of each weather type. Less rain? LowerRAINandTHUNDER, or set them to0.0.useWeatherSequences: weather that changes in logical steps, such as clouds before rain. Some of these sequences contain rain too: for a server without rain, also set this tofalse.
Renewed-Weathersync has no command to freeze the weather permanently. For one fixed weather type, pick it in the /weather menu and give that period a long duration.
qb-weathersync (QBCore)
qb-weathersync is in resources/[qb]/qb-weathersync. The commands are for staff with the QBCore permission admin:
/weather extrasunny: sets the weather. Other types:clear,neutral,smog,foggy,overcast,clouds,clearing,rain,thunder,snow,blizzard,snowlight,xmasandhalloween./freezeweather: switches the automatic weather changes off or on./time 14 0: sets the time. Give both the hour and the minutes./freezetime: freezes the time or lets it run again./morning,/noon,/evening,/nightand/blackout, as above.
For permanent settings, edit config.lua: Config.DynamicWeather = false with Config.StartWeather = 'EXTRASUNNY' gives you sunny weather all the time, Config.FreezeTime = true stops the clock, Config.NewWeatherTimer sets the minutes between changes and Config.RealTimeSync = true follows the clock of the server.
Common problems
- The weather jumps back and forth: two weather scripts are running, for example qb-weathersync and Renewed-Weathersync, or vMenu's weather options next to a weather script. Keep one.
- Snow all the time: it's December and
decemberSnowis on in Renewed-Weathersync. - No permission for a command: you're not in
group.admin(Renewed) or don't have the QBCore permissionadmin(qb-weathersync). With Renewed, also check theadd_acelines for ox_lib. - **
Could not find dependency qb-weathersync for resource ...**: a script asks for qb-weathersync and neither script is installed. Install Renewed-Weathersync (it counts as qb-weathersync) or, on QBCore, qb-weathersync. - **
ox_lib must be started before this resource.**: putensure ox_libabove Renewed-Weathersync. See the ox_lib guide. - The time is back to noon after a restart: commands aren't saved. Set the start time in the config.
Want more control over your city? Read NPCs, traffic and police as well. No server yet? With FiveM server hosting from €5 a month you can try one free for 24 hours.