Glitched Scripts
Racing

Discord webhook

Race announcement posts for Discord — setup and example embeds.

gs_racing can post race announcements to a Discord channel via webhook when a lobby or official event goes live on the board.

Setup

Never put the webhook URL in shared/config.lua (that file is shared with clients).

-- shared/config.lua
Config.SendDiscordNotifications = true

-- server/edit.lua
Config.DiscordWebhook = 'https://discord.com/api/webhooks/...'

Both must be set:

SettingWhereRole
Config.SendDiscordNotificationsshared/config.luaMaster on/off
Config.DiscordWebhookserver/edit.luaChannel URL ('' disables sending)

Create the webhook in Discord: Channel settings → Integrations → Webhooks → New Webhook → copy URL.

Treat the webhook URL like a password. Anyone with it can post to that channel.

What gets posted

Posts announce races that appear on the GS Racing board — player-hosted lobbies and system/auto events. Typical fields:

  • Track name
  • Mode (Sprint / Circuit / Drift) and laps when relevant
  • Vehicle class
  • Entry fee and prize pot
  • Start timing (open now, scheduled time, or countdown)

Example posts

Examples of how announcements look in Discord (username/avatar come from your webhook settings).

Player-hosted race

GS Racing
────────────────────────
🏁 New race: Vinewood Hills Sprint

Mode         SPRINT
Class        S
Entry fee    $2,500
Prize pot    $15,000
Starts       Open now — join at the start line

See you at the start line!

Official / auto event

GS Racing
────────────────────────
🏎️ Official race: LSIA Circuit

Mode         CIRCUIT · 3 laps
Class        A
Entry fee    $1,000
Prize pot    $28,400
Starts       in 45 minutes

Lobby opens in the join window before start. Open GS Racing to enter.

Drift event

GS Racing
────────────────────────
💨 New race: Mirror Park Drift

Mode         DRIFT
Class        Any
Entry fee    $500
Prize pot    $8,200
Starts       Open now — join at the start line

Highest score wins. See you at the start line!

Amounts, track names, and timing reflect the live race row (same data players see in the tablet). Exact embed colors and field layout follow the resource build you are running.

On this page