SimpleSync: Highly configurable Time, Weather and Blackout synchronization

SimpleSync is a script for FiveM that allows you to synchronize the Weather, Time and Artificial Lights (for a Blackout) between clients. There are multiple modes that you can use for Time and Weather:

  • Dynamic (Time is increased over time, Weather is changed over time based on the current value)
  • Static (the Weather and Time never changes, unless is done manually)
  • Real (uses the information of real-life cities via Timezones and OpenWeatherMap for Time and Weather respectively)

Unlike other Synchronization scripts, the resource is highly configurable. You can change the Dynamic Weather switches, the scale of the Time and more options. No more scripts fighting for controlling the Time and Weather! Developers have exports available that they can use.

Download:

Installation: https://github.com/justalemon/SimpleSync#installation
Usage: https://github.com/justalemon/SimpleSync#usage
Source Code: https://github.com/justalemon/SimpleSync (under MIT License)
Feature Requests & Bug Reports: https://github.com/justalemon/SimpleSync/issues
Full Changelog: https://github.com/justalemon/SimpleSync/releases

14 Likes

Very cool, I’ve been watching your github for the past week while you make development on this. Moving it to the releases.

Thanks! Let me know anything that needs to be changed, because is my first time posting a release on the Forums.

1 Like

I’ll test it out later this evening. I was definitely interested to see how smooth the weather transitions are.

1 Like

If you want, you can change the duration of the transition with the simplesync_transition convar.

Very nice release @justalemon. Good job!

looks cool but will it work with vMenu?

Yes, as long as you set the vmenu_enable_weather_sync and vmenu_enable_time_sync convars to false.

Does the server sends the time data every x seconds like Vsync does?

No. The sync process is a bit different:

Unlike vSync, where the information is sent every second, we only send it when is changed and we save it for later.

1 Like

Screenshot_15

?

Is there ability to temporary disable weather sync client side?
There are client side events where we want to force specific weather for some time for one client.
Thats main missing thing in other weather scripts

This is a amazing script, but for setting timezones, when you do /timezones all it literally does it list them, does not tell you what to put for the /timezone command, and no where on your wiki says it

The commands are restricted by default, you need to add the ace command.<name>.

Create an issue on GitHub, so I keep track of these two feature requests.

Sorry about that! Is the text before the dash. For example: if you want to use Tokyo Standard Time - (UTC+09:00) Osaka, Sapporo, Tokyo, you need to enter Tokyo Standard Time on the convar.

You need to use double quotes, like "Tokyo Standard Time". This is because FiveM thinks that we are passing 3 parameters instead of one, and the double quotes forces it to become a single parameter.

I added this to the documentation of the /timezone and /timezones commands.

in my country is dark now, but in server is a day. i changed timezone but still the same

Make sure that the Time Mode is set to Real and the Timezone is listed on the /timezones command.

Also, the default Timezone is set to Pacific Standard Time (because LS is LA).

yes i made everything correct. after being in server ~10minutes and if its dark, it goes to day and etc.

What do the /timemode and /timezone commands say?

1 Like