Skip to Content
WeatherHubConfiguration

Configuration

Edit shared/config.lua. It ships unencrypted, so you can change it freely.

Common settings

SettingDefaultDescription
Config.AdminGroups{'admin','superadmin','owner'}Framework groups treated as admins
Config.Command'weatherhub'Chat command that opens the panel
Config.Keybind'F6'Keybind, false to disable
Config.DefaultWeather'CLEAR'Weather on start
Config.DefaultTime{hour=12, minute=0}Time on start
Config.TransitionDuration15.0Weather transition, seconds
Config.GameMinuteDuration2000ms per game minute (2000 is about 48 minutes a day)
Config.SmoothTimeTransitiontrueSmooth time changes
Config.AutoSnowOnGroundtrueSnow on the ground for snow weather
Config.MinZoneRadius200Smallest weather zone radius
Config.DebugfalseDebug prints and zone wireframes

Convars

setr weatherhub:primaryColor "#FF5500" # panel accent colour setr weatherhub:locale "en" # language

Permission roles

Config.Permissions.Roles defines who can do what. A player gets the first role they match, by ACE, ACE group, or by being a framework admin.

RoleMatchCan use
Ownergroup.god or weatherhub.ownerEverything
Adminframework admin or weatherhub.adminEverything except real weather and seasons
Moderatorgroup.mod or weatherhub.modWeather, time, events, alerts
Event Teamweatherhub.eventsEvents, blackouts, alerts, lightning

Resources that use the old qb-weathersync events need the ACE command.weather / command.time, or one of the roles above.

Frameworks

WeatherHub detects Qbox, QBCore, ESX or Mythic Framework by itself. Admin check per framework:

FrameworkAdmin check
Qbox / QBCorePlayer group
ESXPlayer group
MythicStaff character flag (IsAdmin) or ACE
AnyACE command or a WeatherHub role

Known limitations

These are GTA V engine limits, not WeatherHub bugs:

  • Snow on the ground switches on or off instantly, with no gradual buildup
  • Puddles can linger briefly after rain clears
  • Zones cannot overlap, to prevent weather flickering
  • Zone boundaries are 3D spheres, they extend above and below ground