> For the complete documentation index, see [llms.txt](https://viper-development-1.gitbook.io/viperdocs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://viper-development-1.gitbook.io/viperdocs/viper-scripts/safe-zone/config.md).

# Config

{% code title="config.lua" lineNumbers="true" %}

```
Config = {}

Config.Locale = 'en' -- (en, es, fr, de)

Config.ThemeColor = '#00d97a' -- Accent color used by the UI
Config.BackgroundColor = 'rgba(12, 14, 18, 0.92)' -- Panel background color


-- The "SAFE ZONE" banner shown while standing inside a zone
Config.Banner = {
    position = 'bottom-right', -- 'top-left', 'top-center', 'top-right', 'middle-right', 'middle-left', 'bottom-right', 'bottom-center', 'bottom-left'
    offsetX = 24, -- offsetX / offsetY are the distance in pixels from the edge of the screen
    offsetY = 24,
}

-- The toast notifications (point placed, zone created, no permission, etc.)
Config.Toasts = {
    position = 'bottom-right', -- 'top-left', 'top-center', 'top-right', 'middle-right', 'middle-left', 'bottom-right', 'bottom-center', 'bottom-left'
    offsetX = 24,
    offsetY = 24,
    duration = 4000, -- How long each toast stays on screen, in milliseconds
}

Config.ShowBlips = true -- Show map blips for every safe zone
Config.Blip = {
    sprite = 487, -- Blip sprite ID
    color = 2, -- Blip color ID
    scale = 0.9, -- Blip scale
}

-- Polygon placement
Config.ZoneHeight = { below = 10.0, above = 30.0 } -- Zone height in meters below/above the lowest/highest placed point
Config.MaxPoints = 64 -- Maximum polygon points per zone
Config.MaxSpeedKmh = 300 -- Highest speed limit an admin can set in the menu
Config.MaxZoneSize = 1500.0 -- Max bounding-box width/length of a zone in meters (anti-fat-finger)
Config.PreviewDistance = 250.0 -- How far away preview outlines are drawn (lower = better FPS)
Config.PlacementKeys = {
    addPoint = 38, -- E: place a point at your position
    finish = 74, -- H: finish and save the zone
    undo = 194, -- BACKSPACE: remove the last point
    cancel = 73, -- X: cancel placement
}

-- Admin
Config.MenuCommand = 'vipersafezone' -- The single command that opens the Safe Zone Manager
Config.AcePermission = 'safezone.admin' -- Ace permission required (add_ace group.admin safezone.admin allow)

-- Discord webhook logs 
-- Paste YOUR OWN Discord webhook URL to log zone create / edit / delete actions.
-- Leave empty ('') to disable logging.
Config.Webhook = ''

```

{% endcode %}
