Server Configuration

πŸ–₯️ Server Configuration

Server-side settings are in config_server.lua. This file is not escrow-locked - you can edit it freely.


Webhook

ConfigServer.Webhook     = ""            -- Discord webhook URL

Leave Webhook empty to disable Discord notifications entirely.


Anti-cheat

ConfigServer.Cheater = function(source)
    DropPlayer(source, "Kicked.")
    -- add ban logic, logging, alerts, etc. here
end

This function is called automatically whenever server-side exploit detection fires. Triggers include:

  • Invalid vehicle model sent from client

  • Invalid route ID sent from client

  • Stop index out of sequence

  • Payment or passenger count outside allowed range

  • Player too far from the spawn zone

By default this only kicks the player. Add your own ban logic if needed.


Discord Webhooks

When a webhook URL is set, the script sends an embed to Discord for every key event:

Event
Color

Route started

Blue

Route completed

Green

Perfect route

Gold

Bus returned + payment

Green

Accident

Orange

Bus destroyed

Red

Level up

Gold

Achievement unlocked

Gold

Player disconnected on route

Yellow

Each embed includes: player name, license identifier, route name, and relevant stats.

Last updated

Was this helpful?