Configuration
Edit shared/config.lua. It ships unencrypted, so you can change it freely.
Common settings
| Setting | Default | Description |
|---|---|---|
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.TransitionDuration | 15.0 | Weather transition, seconds |
Config.GameMinuteDuration | 2000 | ms per game minute (2000 is about 48 minutes a day) |
Config.SmoothTimeTransition | true | Smooth time changes |
Config.AutoSnowOnGround | true | Snow on the ground for snow weather |
Config.MinZoneRadius | 200 | Smallest weather zone radius |
Config.Debug | false | Debug prints and zone wireframes |
Convars
setr weatherhub:primaryColor "#FF5500" # panel accent colour
setr weatherhub:locale "en" # languagePermission 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.
| Role | Match | Can use |
|---|---|---|
| Owner | group.god or weatherhub.owner | Everything |
| Admin | framework admin or weatherhub.admin | Everything except real weather and seasons |
| Moderator | group.mod or weatherhub.mod | Weather, time, events, alerts |
| Event Team | weatherhub.events | Events, 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:
| Framework | Admin check |
|---|---|
| Qbox / QBCore | Player group |
| ESX | Player group |
| Mythic | Staff character flag (IsAdmin) or ACE |
| Any | ACE 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