vMenu Docs
Configuration

announcements.json

Announcements that send themselves, every so many minutes or at a set time of day.

The file ships with everything commented out, so nothing is announced until you switch something on.

Format

{
  "announcements": [
    {
      "name": "Rules reminder",
      "text": "Remember to read the rules. You can find them in our Discord.",
      "everyMinutes": 45
    },
    {
      "name": "Restart warning",
      "text": "~y~The server restarts in 10 minutes.~s~ Park up somewhere safe.",
      "at": "05:50",
      "clock": "real"
    },
    {
      "name": "Sunrise",
      "text": "The sun is coming up over Los Santos.",
      "at": "06:00",
      "clock": "game"
    }
  ]
}
FieldMeaning
nameA label to find it in the menu. Players never see it.
textWhat players see. Shown as written, never translated.
everyMinutesSend it this often, counted from server start. 1 to 1440.
atSend it at this time of day, as HH:MM on a 24 hour clock.
clockreal (default) or game. Applies to everyMinutes and at.

Use either everyMinutes or at, never both. An announcement with neither is skipped.

An at time the server started past waits for the next day, so a restart at 20

does not replay the 20
message.

Real or game clock

ClockeveryMinutes: 30at: "20:00"
realEvery half hour20
on the server machine's clock
gameAbout every real minuteWhen it turns 20
in game

game only matches what players see while vMenu.Enhanced.TimeOptions.Enabled is on. The console warns on start when a game entry exists while time sync is off.

Editing from the menu

Staff with the Manage permission can add and remove announcements under Admin, Scheduled Announcements. Adding one asks for the timing, then the name, then the text.

Timing typedResult
@45Every 45 minutes, real clock
@5 gameEvery 5 minutes, game clock
10:30At 10
, real clock
10:30 gameAt 10
, game clock

Announcements on the game clock are marked with a green G in the list. Every change is written to the file straight away.

Settings and permissions

NameWhat it does
vMenu.Enhanced.Admin.ScheduledAnnouncementsSetting. false stops the schedule without deleting the file. Default true.
vMenu.Enhanced.Admin.AnnouncementSecondsSetting. How long an announcement stays on screen. Default 20.
vMenu.Enhanced.Menus.Admin.AnnouncePermission. Sending an announcement by hand.
vMenu.Enhanced.Menus.Admin.ManageAnnouncementsPermission. Adding and removing scheduled announcements.

Errors

Console messageCause
No config/announcements.json found...The file is missing. Nothing sends itself.
config/announcements.json could not be parsed...Broken JSON. Nothing sends itself.
... has to hold an object with an announcements list...The announcements list is missing.
Skipping the announcement '...' in ...The reason follows, such as both or neither of everyMinutes and at.

Read at server start. Restart the resource after editing the file by hand.

On this page