Skip to content
This page was translated from German using AI. If anything is unclear, the German version applies.

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.

SettingDefaultMeaning
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.OpenKeynilkey to open it, e.g. 'F7' (every player can change it in the GTA settings); nil = none
Config.SmoothChangestruesmooth changes when set by hand
Config.ConsoleLogtrueshow weather changes in the server console
Config.Compattrueunderstand events from vSync / qb-weathersync / cd_easytime (e.g. pausing the sync)

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.

SettingDefaultMeaning
Mode'game''game' = game time runs by itself, 'real' = real time
DayMinutes48how many real minutes one game day lasts (48 = GTA default)
NightFactor1.02.0 = the night passes twice as fast as the day
NightStart / NightEnd22 / 6night from … to … o’clock (for the night speed)
StartHour9time at the very first start
UtcOffsetnilreal time only: hours from UTC (1 = CET, 2 = CEST); nil = server clock
SweepSeconds4how long the clock visibly turns to the new time
SettingDefaultMeaning
Mode'dynamic''manual', 'dynamic' or 'real'
Start'CLEAR'weather at the very first start
TransitionSeconds45duration of a smooth weather change
Dynamic.MinMinutes / MaxMinutes10 / 25earliest / latest change of the weather in minutes
Dynamic.Rain, Thunder, Fog20, 20, 15tendencies 0–100: 0 = never, 20 = normal, 100 = very often
Dynamic.Snow0share of precipitation that falls as snow
Real.City'Berlin'city for the real weather
Real.CheckMinutes15how often the real weather is fetched
NeverAutoXMAS, HALLOWEEN, NEUTRALthe 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.

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.

SettingDefaultMeaning
Config.Blackout.AffectVehiclesfalsetrue = vehicle lights go out as well
SettingDefaultMeaning
Weather'THUNDER'weather during the alert
Blackoutfalseadditional blackout during the alert
BeforeRestarttruetrigger automatically before scheduled txAdmin restarts
RestartMinutes5how many minutes before the restart the storm begins
Announcetrueall players get a notice