vSync
Very basic time and weather sync.
Update 17-12-2018
I will no longer be maintaining/supporting this resource. The GitHub repo has been archived. Fork it if you want to update it yourself.
Since there’s quite a lot of people requesting this simple script, and I’ve not had the time to merge it into my vBasic script, I thought I’d release it as a separate script instead.
Commands
/weather <weathertype>
/time <hour> <minutes>
/freezetime (New in v1.2.0)
/morning
/noon
/evening
/night
/freezeweather (new in v1.3.0)
/blackout (new in v1.3.0)
Configuration
Edit the Admins list in the vs_server.lua, add the player identifiers of the players that should have access to the commands in there.
That’s it, there’s nothing else to configure.
Download / Source
Known bugs
If you have a custom chat resource, the commands may not work correctly. In that case use the server console instead, or preferably switch back to the regular FiveM chat!
Changelog
v1.4.0
Time is now synced with GTA:O time by default. You can still override it like usual.
v1.3.0
+. Added Dynamic Weather changes. By default weather changes every 10 minutes (this feature can be enabled/disabled by either enabling/disabling it in the config, or using `/freezeweather`). Weather changes according to a realistic weather pattern. If you change the weather using the /weather command, and Dynamic Weather is enabled, then the 10 minute time will be reset to prevent having the weather change a few minutes after you changed it.
+. Added blackout feature. Type /blackout to toggle it on or off. (Blackout removes all light sources from the game).
+. Added notifications for the player that changes the time/weather/blackout mode/freeze and unfreeze weather and time.
v1.2.1
~ Fixed chat message bug (displaying incorrect new time after using /time <h> <m>)
+ Added parameters to the command suggestions to improve user experience
v1.2.0
+ Added /freezetime command to toggle frozen time.
+ Fixed "access denied" bug.
~ Made all chat messages somewhat use the same format/style.
+ Added chat suggestions!
v1.01
+ Added console support for the commands.
+ Improved invalid syntax errors to show the correct usage.
+ Fixed an issue that would crash your game if you set the time to be more than 23 hours or more than 59 minutes.
Important support info / FAQ
Update 26-11-2018: Since everyone seems to be unable to figure out how to use CTRL + F on this forum topic, here you go. It’s not that difficult, really. I will ignore people who ask the following things from now on:
-
I installed this resource but it says I don’t have access to execute the commands [even though i added myself as an admin]:
Spoiler alert: you didn’t add yourself as an admin. You probably used the wrong identifier. Look on the wiki or look in the forums. There are a million explanations already out there on how to get your player identifier, and how to setup vSync. I’d suggest you start with the vSync installation instructions. -
I installed vSync but the ‘sky/lights are flickering’ (or whatever you’all seem to call this issue):
Disable any other weather/time (sync) script. Remove all (broken) (graphics) mods from your FiveM/GTA V installation.