Reallife weather and time sync for FiveM
Git
cd resources
git clone https://github.com/nathan-commits/realtime-weather
Manual download
- Extract the resource folder into your resources folder
server.cfg example
# Realtime Weather Convars
set weather_latitude 48.85
set weather_longitude 2.35
set weather_useFahrenheit true
set weather_realtimeTime true
ensure realtime-weather
The config of this script consists entirely of convars. These can be modified during runtime, but it is recommended to do so before starting the script.
All convars can be set using set <convar name> <convar value>
Convar | Description | Default |
---|---|---|
weather_debugMode | Debug prints in the server console | false |
weather_latitude | Latitude | 0 |
weather_longitude | Longitude | 0 |
weather_presetLocation | Preset latitude and longitude for: Berlin, Paris, London, Madrid and Amsterdam | "Paris" |
weather_disableSnow | Disable snow on ground | false |
weather_disableDynamic | Disable dynamic weather: only update once an hour. | false |
weather_useFahrenheit | Use fahrenheit for temperature export. | false |
weather_realtimeTime | Real day and night cycle sync. Works only after relogging or restarting. | false |
weather_updateFrequency | Weather update frequency. I strongly recommend not to change this number. The current API only updates once an hour. | 600000 |
-
More dynamic weather. For example, when it rains, several short showers instead of one hour of rain. - Possibility to set different weather location for Cayo Perico.
-
Realistic day and night cycle sync. - Option to set a different weather or time via an export.
- Exports to set or freeze weather and time.
-
Convar value to enable or disable snow on the roads. - Possibility of setting a 'personal' time and weather via an export.
- More preset locations.