For the complete documentation index, see llms.txt. This page is also available as Markdown.

Logs Configuration

The logs configuration is located at config/module/cfg_logs.lua. It controls which activity types are logged, where they are sent (Discord webhooks), and various display options.


βœ… Enabled Log Types

LogsEnabled = {
    Disconnections = true,
    Chat           = true,
    Explosions     = true,
    Shots          = true,
    Injuries       = true,
    Death          = true,
    Other          = true,
}

Each entry can be independently enabled or disabled. Setting a type to false completely disables its logging β€” no data is stored and no webhook is sent.

Type
Description

Disconnections

Player connections and disconnections

Chat

All chat messages sent on the server

Explosions

Explosions caused by players

Shots

Weapon shots fired by players, grouped per session

Injuries

Damage dealt to players

Death

Player deaths, including the cause and the killer if applicable

Other

Custom logs triggered via TriggerEvent('MadonnAdmin:SimpleLog', 8, ...)


πŸ“¨ Discord Webhooks

Each log type has its own Discord webhook. Set a valid webhook URL to enable Discord delivery for that type, or set it to false to disable it:

πŸ’‘ You can use Discord forum threads by appending ?thread_id=YOUR_THREAD_ID to the webhook URL. This allows you to send each log type to a dedicated thread inside a single forum channel.


πŸ”« Ignored Weapons

Weapons in this list are excluded from the shots log entirely:

Add any weapon model hash you want to exclude from shot tracking. Useful for tools that are technically "weapons" but are not relevant for moderation.


πŸ–₯️ In-Game Log Display

Maximum number of log entries displayed in the Logs tab of the in-game admin panel. Increasing this value may impact performance when opening the logs page with a large history.


🏷️ Discord Embed Options

If true, the Discord ID of each player involved in a log entry is included in the webhook embed. This allows Discord moderators to directly ping or identify players from the logs.


πŸ”§ Custom Logs

You can push custom log entries to both the in-game panel and Discord from any resource using the MadonnAdmin:SimpleLog event:

To add persistent custom log threads, edit server/custom/sv_logs.lua:

Last updated