SimpleSync: Highly configurable Time, Weather and Blackout synchronization

This resource helps to improve syncing between clients? Or just is worst for one-sync servers?

The description literally says:

That is the only thing that SimpleSync does.

1 Like

Just curious, to set it to permanent night I just need to add
set simplesync_modetime "1"
and then how do I set the time of day? preferably using a cvar so I never have to use a chat command

/time or via exports

I get this error when all the people on my server have logged off and the server sits idle after a few hours

This is probably another Resource breaking stuff, SimpleSync would show a completely different style of exception.

Ive installed it and followed the guides.
Im using Real Mode, the time works fine, but the weather is awkward.

set simplesync_key
set simplesync_city
set simplesync_modetime 2
set simplesync_timezone “GMT Standard Time”

Ive set the API key and the designated city, ive got Mediterranean Weather which is sunny at this time of the year, but its snowing ingame :rofl: :joy: .

set simplesync_timezone “FLE Standard Time”
set simplesync_modetime 2
set simplesync_modeweather 1
set simplesync_key “0aa”

at 20:00 time, all lamps starts flicking, even in day mode, some shadows are blinking everywhere…

What value do you have here? Some cities have the same name so you would need to specify the ISO Country Code like this:

set simplesync_city “Santiago, CL”

This usually happens when another resource is trying to control the time. Make sure that no other Synchronization resources are running.

Im using “Vilamoura, PT”, theres only 1 that appears in the website.

Can i use setr ? Or do i need to restart the server everytime i change something ?

No, you don’t need to restart the server when you make a change to the convars.

Do you get any type of notifications or errors on the console?

sorry, but I’m not using other weather system in any file

Never mind my convars settings caused it

Not using any other weather scripts and no ive got no errors on console.

I just pushed 1.3, here is the changelog:

  • NEW: Water now looks icy on XMAS weather
  • NEW: Footsteps now use snowy sounds on XMAS weather
  • NEW: Added Snow particles on XMAS weather
  • NEW: Adding force at the end of the /weather command will force the weather to be applied when the mode is set to dynamic and there is a switch in progress
1 Like

So I installed this to my server and the console keeps saying this:

Use the command /timezones to see the available TZs

Just in case, we changed the TZ to ‘America/Los_Angeles’

The Time Zone ‘America/Los_Angeles’ was not found!

In the docs you’ve provided it says “timezones available on your server installation” What exactly do you mean by that?

You want to set it to this:

set simplesync_city "Los Angeles, US"

Timezones are different depending on the version of your Linux or Windows Server.

For example, there are 3 timezones on Chile:

  • America/Santiago
  • America/Punta_Arenas
  • Pacific/Easter

America/Punta_Arenas was introduced on 2017, so there is the chance that some old Windows Server 2016 installations will not have this timezone.

Also, the timezones are completely different between Linux and Windows, so is not possible to use the same value in both Operating Systems.

Is this still being worked on?

Main question being, how would I use exports in Javascript for this?

Yes, but I have not gotten any bug reports or feature requests so far.

https://docs.fivem.net/docs/scripting-manual/runtimes/javascript/#using-exports