Bus Job
Server Configuration
Configure Bus Job webhooks and server-side anti-cheat behavior for FiveM ESX servers.
On this page3 sections
Server-side settings are stored in config_server.lua.
This file is fully editable.
Webhook
ConfigServer.Webhook = "" -- Discord webhook URLLeave Webhook empty to disable Discord notifications entirely.
Anti-cheat
ConfigServer.Cheater = function(source) DropPlayer(source, "Kicked.") -- add ban logic, logging, alerts, etc. hereendThis 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
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.