Discord Logs

Webhook links go in server/webhooks.lua. This file is server only, so webhook links never reach players. Leave a webhook empty to turn that log off.

server/webhooks.lua
Config.Webhooks = {
    employees  = '',   -- hired and removed by a manager
    grade      = '',   -- promotions and demotions
    leave      = '',   -- player removed a job from themselves
    appearance = '',   -- job name and icon changes
    switch     = '',   -- player switched active job
    duty       = '',   -- player went on or off duty
}

You can use a separate channel for each log type, or point them all at one channel.

What gets logged

Webhook Logs
employees Players hired and removed by a manager
grade Promotions and demotions
leave Players removing a job from themselves
appearance Job name and icon changes
switch Players switching their active job
duty Players going on or off duty

Each embed shows the player's name, citizen ID, server ID and Discord tag, plus the before and after values where something changed.

Bot name, avatar and colours

The bot name, avatar and embed colours are in the Webhook table at the top of server/main.lua.

Console logging

Set Config.Log = true in shared/config.lua to also print changes to the server console.

Last updated 2026-11-08