HM SimpleTime - Configuration
All settings are in config.lua. These are start values: whatever you change later in the interface is saved in data/state.json and takes priority.
General
Section titled “General”| Setting | Default | Meaning |
|---|---|---|
Config.Locale | 'de' | language: 'de' or 'en' |
Config.Command | 'simpletime' | command that opens the interface |
Config.Aliases | { 'wetter' } | further commands that work the same way |
Config.OpenKey | nil | key to open it, e.g. 'F7' (every player can change it in the GTA settings); nil = none |
Config.SmoothChanges | true | smooth changes when set by hand |
Config.ConsoleLog | true | show weather changes in the server console |
Config.Compat | true | understand events from vSync / qb-weathersync / cd_easytime (e.g. pausing the sync) |
Permissions
Section titled “Permissions”It is enough if one of the rules applies:
Config.Permissions = { Ace = { 'hm_simpletime.admin' }, -- server.cfg: add_ace group.admin hm_simpletime.admin allow Groups = { 'superadmin', 'admin', 'god' }, -- ESX group or QBCore/Qbox permission Identifiers = {}, -- single players, e.g. 'license:…', 'discord:…'}Custom rules (e.g. for another framework) can be added in open/server.lua in the function Open.IsAllowed.
| Setting | Default | Meaning |
|---|---|---|
Mode | 'game' | 'game' = game time runs by itself, 'real' = real time |
DayMinutes | 48 | how many real minutes one game day lasts (48 = GTA default) |
NightFactor | 1.0 | 2.0 = the night passes twice as fast as the day |
NightStart / NightEnd | 22 / 6 | night from … to … o’clock (for the night speed) |
StartHour | 9 | time at the very first start |
UtcOffset | nil | real time only: hours from UTC (1 = CET, 2 = CEST); nil = server clock |
SweepSeconds | 4 | how long the clock visibly turns to the new time |
Weather
Section titled “Weather”| Setting | Default | Meaning |
|---|---|---|
Mode | 'dynamic' | 'manual', 'dynamic' or 'real' |
Start | 'CLEAR' | weather at the very first start |
TransitionSeconds | 45 | duration of a smooth weather change |
Dynamic.MinMinutes / MaxMinutes | 10 / 25 | earliest / latest change of the weather in minutes |
Dynamic.Rain, Thunder, Fog | 20, 20, 15 | tendencies 0–100: 0 = never, 20 = normal, 100 = very often |
Dynamic.Snow | 0 | share of precipitation that falls as snow |
Real.City | 'Berlin' | city for the real weather |
Real.CheckMinutes | 15 | how often the real weather is fetched |
NeverAuto | XMAS, HALLOWEEN, NEUTRAL | the automation never picks these types (they stay selectable by hand) |
Weather types: EXTRASUNNY, CLEAR, CLOUDS, OVERCAST, SMOG, FOGGY, CLEARING, RAIN, THUNDER, NEUTRAL, SNOWLIGHT, SNOW, BLIZZARD, XMAS, HALLOWEEN.
Weather flow
Section titled “Weather flow”Config.WeatherFlow defines for every weather what may follow and how likely it is. This way the weather doesn’t jump from sunshine straight to a thunderstorm.
OVERCAST = { { 'CLOUDS', 4 }, { 'OVERCAST', 1 }, { 'RAIN', 3, 'rain' }, { 'CLEARING', 2, 'rain' }, { 'FOGGY', 1, 'fog' } },Higher number = more often. The third value ties the entry to a tendency ('rain', 'thunder', 'fog'): at 20 the weight applies as given, at 0 never, at 100 five times as often.
Blackout
Section titled “Blackout”| Setting | Default | Meaning |
|---|---|---|
Config.Blackout.AffectVehicles | false | true = vehicle lights go out as well |
Storm alert
Section titled “Storm alert”| Setting | Default | Meaning |
|---|---|---|
Weather | 'THUNDER' | weather during the alert |
Blackout | false | additional blackout during the alert |
BeforeRestart | true | trigger automatically before scheduled txAdmin restarts |
RestartMinutes | 5 | how many minutes before the restart the storm begins |
Announce | true | all players get a notice |