Page cover

Advanced Weather System

This page explains how to configure the Config.lua file for the Advanced Weather System.


🧪 Development Mode

Option
Description
Default

EnableDevMode

Enables extra logs or debugging features for development purposes.

true


🌤️ Weather Configuration

Option
Description
Default

StartingWeather

Sets the starting weather when the server boots.

"EXTRASUNNY"

WeatherRandomizer

Enables or disables automatic random weather changes.

true

WeatherTypes

List of weather types that can be randomly selected.

{"EXTRASUNNY", "CLOUDS", "BLIZZARD", "THUNDER", "FOGGY", "XMAS", "RAIN"}

WeatherRandomizerTime

Time interval (in milliseconds) between each random weather change.

1800000 (30 minutes)

💡 See all valid weather types on FiveM Native Docs


🕒 Time Configuration

Option
Description
Default

StartingHour

Starting in-game hour.

5

StartingMinut

Starting in-game minute.

45

TimeBetweenMinute

Time (in ms) for each in-game minute to pass.

10000

RealTime

Enable real-world time syncing (disables custom morning/evening settings).

false

Contry

API URL to fetch real-time based on timezone. Replace with your city/region.

"https://www.timeapi.io/api/Time/current/zone?timeZone=Europe/Ljubljana"

❗ If RealTime is enabled, Morning/Evening settings will be ignored.


🌅 Morning & Evening Time (Only if RealTime = false)

Option
Description
Default

MorningHour

Hour when the game considers "morning" starts.

10

MorningMin

Minute of morning start.

30

EveningHour

Hour when "evening" starts.

19

EveningMin

Minute of evening start.

30


📟 Commands & Permissions

Option
Description
Default

OpenCommand

Command players use to open the weather menu.

"weatherapp"

AllowedLicenses

List of licenses (Rockstar license IDs) allowed to use the command/menu.

Example licenses listed

🔒 Only users with licenses in AllowedLicenses will be able to use the /weatherapp command.


✅ Example Use

To open the weather menu, use:

bashCopyEdit/weatherapp

Only players with a license listed in AllowedLicenses can access the UI.

Last updated