Skip to content
Config
Discord

Discord Logging Config

⚠️

Logging to discord is inefficient and should not be used on larger scale servers. Also keep in mind if you log to much in a short time span the webhook might get rate limited for a while by Discord. So try looking at options like Datadog or Grafana.

Webhooks

This specifies the webhooks for specific functions. You can also add your own webhooks here.

  • default (Logging for everything that doesn’t have a specific group)
  • test (Logging for testing purposes)
  • Chat (Logging of the ingame chat)
  • UserActions (Commands ran by players)
  • Resources (Logging for resources)
  • Paycheck (Logging the playcheck if enabled)

Adding your own webhook: Example

Webhooks = {
    default = '',
    test = '',
    Chat = '',
    UserActions = '',
    Resources = '',
    Paycheck = '',
    Police = '' -- My custom webhook for logging my custom police actions
},

Colors

This specifies the colors that can be used by the logs. You can also add your own colors here. Make sure to use the “Decimal value” of the colors. For help you can use this website: spycolor.com