> For the complete documentation index, see [llms.txt](https://fragmentdevelopment.gitbook.io/fivem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fragmentdevelopment.gitbook.io/fivem/paid-scripts/punishment/config.md). Agents can also search and read this documentation through its [MCP server](https://fragmentdevelopment.gitbook.io/fivem/~gitbook/mcp).

# Config

```lua
Settings = {}

--[[
    Setting this option to true will
    enable debug mode, allowing additional
    logging and diagnostic information to be displayed.
]]
Settings.DebugEnabled = false

Settings.OpenCommand = "panel"

--[[
    'auto' means it will automatically detect your Framework.

    Available options:
    - auto
    - ESX
    - QBCore
    - QBOX
    - standalone
    - custom
    You can also defined the options above manually as the value.
]]
-- Settings.Framework = 'auto'
Settings.Framework = 'auto'

--[[
    Automatically creates the required database tables if they do not already exist.
    If disabled, you must manually create the necessary tables before running the script.
]]
Settings.AutoSql = true

--[[
    'auto' means it will find your framework' language convar in your server.cfg, if it's not specified there, 'en' will be used.

    Compatible auto framework' language detection:
    - ESX: esx:locale
    - QBCore: qb_locale
    - QBOX: qb_locale

    Available options:
    - 'en' (English)
    - 'es' (Spanish)
    You can your own language in the locales/ directory.
]]
-- Settings.Language = 'auto'
Settings.Language = 'auto'

Settings.JailConvertOptions = {
    enabled = false,

    modelNames = {
        -- "a_c_cat_01",
        "a_c_mtlion",
        "a_c_husky",
        "a_c_pig"
    },
}

Settings.ShowIssuerOnProgressCard = true
Settings.SanctionCardPosition = "bottom-right"

Settings.CommunityService = CommunityServiceTemplates.Pickaxe
Settings.Jail = JailTemplates.Bolingbroke

Settings.RestrictInventory = true

Settings.CheckZoneEvery = 300 -- in milliseconds

Settings.FadeEnabled = true

Settings.Interactions = {
    CommunityService = {
        key = 38,
        keyString = "E",
    }
}

Settings.Blips = {
    CommunityService = {
        sprite = 515,
        scale = 0.7,
        colour = 47
    }
}

Settings.Marker = {
    CommunityService = {
        type = 21,
        scale = { x = .6, y = .6, z = .6 },
        color = { r = 255, g = 136, b = 82, a = 255 }
    },
}

Settings.Commands = {
    CommunityService = {
        enabled = true,
        commandName = "comserv",
    },
    EndCommunityService = {
        enabled = true,
        commandName = "endcomserv",
    },
    Jail = {
        enabled = true,
        commandName = "jail",
    },
    Unjail = {
        enabled = true,
        commandName = "unjail",
    },
}

Settings.Cure = {
    -- This function is used to revive / heal a player every certain time so he doesn't die when serving

    enabled = true,
    interval = 10, -- Minutes
}
```
