Skip to content

operationairstrike/esx_wsync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esx_wsync

Simple weather and time sync script for FiveM servers.

Requirements

  • ESX

Fork Extra Features

  • Smoother time synchronization. Moon and clouds should be way smoother.
  • Configuration file, more flexible dynamic weather options.
  • Hopefully fixed sky flickering of original code.
  • Hopefully smoother weather changing.
  • Extra admin commands.

Features

  • Dynamic changing weather every 10 minutes (can be (temporarily or permanently) disabled. The weather will only change according to realistic patterns. Some types like snow, xmas, halloween and neutral have been disabled. This means that if the weather is currenlty one of those types, it won't be changed. It will also never change to those types.
  • Blackout. Enable/disable this in the config or using /blackout ingame.
  • Weather and Time synced across all players.

Commands

  • /weather <type> Change the weather type (will fade to the new weather type within 15 seconds).
  • /time <h> <m>,/time <h>:<m> Set the time.
  • /time Get current time.
  • /freeze_time Stop game time.
  • /blackout Turn off all of the game lights.

Triggers

Server only:

  • esx_wsync:set_time(hour, minute)

Client/server:

  • esx_wsync:blackout(source)
  • esx_wsync:freeze_time(source)
  • esx_wsync:freeze_weather(source)

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%