Schedules
The Schedule tab of the Map Workshop switches maps on and off for you, by day and time of day. A Christmas map can switch itself on for December, a night market from 22:00 to 06:00, or an event map on one weekend.
A rule names the maps it controls, the days it runs and its hours. The server checks the rules on its own clock and switches the maps exactly as if an editor ticked On in the Maps tab.
Settings
Config.Schedule = {
tickSeconds = 20, -- how often the server checks whether a rule window opened or closed
maxRules = 60, -- most rules that can be saved
}| Setting | What it does |
|---|---|
tickSeconds | How often the server checks the rules, in seconds. Values below 5 count as 5. |
maxRules | The most rules that can be saved. A new rule beyond it is refused with No room for another rule. Existing rules can still be edited. |
See Schedule.
The master switch
When no rule and no day is open, the panel on the right shows Server time: the time of the server with its UTC offset, for example UTC+01, and today’s date. Under it is the master switch.
| Switch | What happens |
|---|---|
| Schedule live | Rules are running. Maps listed below are switched on and off for you. |
| On hold | Rules are on hold. Nothing is switched automatically and the manual Enabled switches stay in charge. |
The switch is saved in the database, in the bablo_mapeditor_settings table, so it is kept across restarts. On a new install it starts On hold. Turn it to Schedule live when your rules are ready.
Under the switch, Maps on a schedule lists every map an active rule names, with the rule. A green dot marks a map that a rule keeps on right now. When no active rule names a map, it shows No map is on a schedule yet. The note under the list reads Every other map is left alone - the schedule only touches maps a rule names.
Creating a rule
Press New rule in the right panel, or click a day on the calendar and press New rule on this day. The panel turns into the rule editor.
- Type a name in Rule name…, up to 64 characters.
- Under Which days it runs, choose Repeats weekly or Specific dates. See Days.
- Under Which hours of the day, set the time window. See Hours.
- Under Which maps should show, click the maps this rule switches. A map you do not tick is left alone. A map that is in no rule keeps its manual Enabled switch.
- Press Save rule.
Save rule stays greyed out until the rule has a name, at least one map and at least one day or date. Cancel closes the editor without saving. A new rule is active as soon as it is saved. While the schedule is live, the server applies it straight away.
A rule can name up to 32 maps, enabled or disabled.
Days
| Choice | How |
|---|---|
| Repeats weekly | Click the weekdays Mo to Su, or use Every day, Weekdays (Monday to Friday) or Weekend (Saturday and Sunday). Clicking a day on the calendar also switches its weekday on or off. |
| Specific dates | Click days on the calendar: Click days on the calendar to add them, click again to drop one. Shift-click fills everything between two days. |
For specific dates, the editor shows Days picked: 4 with Clear, and every date as a chip. Click a chip to drop that date. A rule holds up to 366 dates: A rule holds up to 366 days. Split anything longer into a second rule.
A new rule from New rule on this day starts with that date picked.
Hours
| Preset | Window |
|---|---|
| All day | 00:00 to 24:00 |
| Day 06-22 | 06:00 to 22:00 |
| Night 22-06 | 22:00 to 06:00 the next morning |
| Custom | Your own window, set with the bar below. Choosing Custom from one of the other presets starts at 19:00 to 04:00. |
Under the presets is a bar for the whole day, from 00:00 to 24:00, with two handles: the start and the end of the window. Drag a handle to move it in steps of 15 minutes, or click the bar to move the nearest handle there. A window that matches none of the presets shows as Custom.
Under the bar, the window is shown as text, for example 20:00 – 05:00, with its length, for example Length 9h. A new rule starts with 20:00 to 05:00.
A map is on from the start time up to the end time. When the end is earlier than the start, the window crosses midnight: This window crosses midnight, so it belongs to the day it starts on and runs into the next morning. A Friday rule from 22:00 to 06:00 runs from Friday 22:00 to Saturday 06:00. The same goes for specific dates: the window belongs to the date it starts on.
The days and hours follow the clock and time zone of the server, not those of the players.
The rule list
The rules are listed under the calendar.
| Part | What it shows or does |
|---|---|
| Name | The name of the rule. |
| Days and hours | For example Weekdays · 22:00–06:00 or Every day · All day. A rule with specific dates shows its dates instead of the weekdays. |
| Maps: 3 | How many maps the rule names. |
| On now | The schedule is live and the rule is in its window. |
| Waiting | The rule is active but outside its window, or the schedule is on hold. |
| Paused | The rule is paused. |
| Pause / Resume | Pauses the rule, or makes it active again. |
| Edit | Opens the rule in the editor. Change it and press Save rule. |
| Delete rule | Deletes the rule after a confirmation. |
A paused rule switches nothing. A map that only paused rules name keeps the state it has, as if no rule named it.
Deleting asks first: Delete rule, Night market is removed. Maps it controlled go back to their manual Enabled switch and stay exactly as they are right now. and Delete.
The calendar
The calendar shows one month, starting on Monday. ‹ and › go to the previous and next month, Today back to this month.
| Mark | Meaning |
|---|---|
| Tinted day | An active rule runs on that day. |
| Outlined day | An active rule with specific dates runs on that day. |
| Dot | Today, by the server’s clock. |
| Gradient | A day of the rule you are writing. |
The legend under the calendar shows Repeating rule, One-off rule, Today and, while you write a rule, The rule you are writing.
When no rule is open in the editor, click a day to see That day: the rules for that day, with their hours and maps, or Nothing is scheduled to start on this day. New rule on this day starts a rule with that date, and Back returns to the server time.
How the rules are applied
While the schedule is live, the server checks the rules every tickSeconds, and also right after a rule is saved, paused, resumed or deleted and right after the switch is set to Schedule live.
At each check, for every map that at least one active rule names:
- The map is switched on when at least one of those rules is in its window.
- The map is switched off when none of them is.
So when rules overlap, a map stays on as long as any of its rules is in its window. Maps that no active rule names are never touched.
Maps an active rule names carry an Auto badge on the Maps tab. If you flip such a map by hand while the schedule is live, the next check switches it back: A schedule rule turns this map on and off. Flipping it by hand here only lasts until the next check.
While the switch is On hold, nothing is switched. Every map keeps the state it has, and the On boxes on the Maps tab decide.
The tab reloads the rules and the server time every minute while it is open.
What players see
A map switched on by a rule appears for every player: its props load around them, the GTA props it erased disappear and its lights come on. A map switched off disappears again: its props are removed, the erased GTA props are back and its lights go out. Editors who see disabled maps keep seeing it. See Map Streaming & Sync.
Each switch is written to the History as map_enable or map_disable, with schedule as Who.

