[FREE][ALL] Weather Script + sync + config

[EN]
Hello, I present to you my weather script which has a small feature that allows you to know the 3 future weather which may change over time.

Current weather = Extrasunny
Next (1) = Rain
Next (2) = Clear
Next (3) = Foggy

When the current weather changes:
Current becomes the 1
The 1 becomes the 2
The 2 becomes the 3
The 3 generates a new weather

Every 10 minutes the weather changes but at 5 minutes the future weather can change (Watch config)

Full configurable script >> shared / config.lua
Choice of language FR or EN

Add your “license: identifier” without “license:” in the config.permissions

Optimized: 0.01ms

[FR]
Bonjour je vous présente mon script de météo qui à une petite particularité qui permet de connaitre les 3 futurs météo qui peuvent changé au fur a mesure du temps.

Météo actuel = Extrasunny
Next (1) = Rain
Next (2) = Clear
Next (3) = Foggy

Quand la meteo actuel changera:
Actuel devient le 1
Le 1 devient le 2
Le 2 devient le 3
Le 3 génère une nouvelle météo

Toutes les 10 minutes la météo change mais à 5 minute les futurs météo peuvent changer (Regarder config)

Script full configurable >> shared/config.lua
Choix de la langue FR ou EN

Ajouter votre “license:identifier” sans “license:” dans le config.permissions

Optimisé: 0.01ms

Screenshot_30

Download Link: https://github.com/thefrcrazy/crz_weather

4 Likes

Awesome! Maybe you can put a realtime in it? Would be amazing to see a nice kombo script.

I do not intend to do it because I find that it distorts gta

Use global state bags to save the time. That way you are saving yourself from triggering a client event to everyone every 5 seconds, and you can set the time quicker on the client.

1 Like

Nice release mate

1 Like

Salut très beau travail , je voudrais passer les 10 minutes à 20 minutes pour les changements , et supprimer le ralentissement de temps sur l’heure du jeu , tu crois que c’est possible ?

En tous cas merci beaucoup pour ton script c’est une tuerie !!

Explain or guide me towards a example. I really want to know about this state bags.

https://docs.fivem.net/docs/scripting-manual/networking/state-bags/

Oh that would be cool