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

# Zones Creator

Transform Your Server With Shift Studios — Powerful, Optimized, And Reliable Resources Built To Improve Every Experience.

<figure><img src="https://4062160621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgqh3gjuJzDAWNXTD9sEE%2Fuploads%2F43dnFi5gKrHd2E9KOeVZ%2F1aa5bcbc-3fe8-4c74-93ce-cf5f9c31f0f9.png?alt=media&amp;token=767c28b8-94e5-48e4-9257-01310f05b71f" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Zones Creator

Read Everything Below To Install
{% endstep %}

{% step %}

### Drag & Drop

Drag & Drop The Resource Into Your FiveM Server
{% endstep %}

{% step %}

### Ensure The Resource

Make Sure To Ensure shift-zones In Your Server CFG.
{% endstep %}

{% step %}

### Configure Resource

Make Sure To Configure The Resource To Your Liking

{% code expandable="true" %}

```lua
-- ⚫ ███████╗██╗  ██╗██╗███████╗████████╗    ███████╗████████╗██╗   ██╗██████╗ ██╗ ██████╗ ███████╗ ⚫
-- ⬛ ██╔════╝██║  ██║██║██╔════╝╚══██╔══╝    ██╔════╝╚══██╔══╝██║   ██║██╔══██╗██║██╔═══██╗██╔════╝ ⬛
-- ⚫ ███████╗███████║██║█████╗     ██║       ███████╗   ██║   ██║   ██║██║  ██║██║██║   ██║███████╗ ⚫
-- ⬛ ╚════██║██╔══██║██║██╔══╝     ██║       ╚════██║   ██║   ██║   ██║██║  ██║██║██║   ██║╚════██║ ⬛
-- ⚫ ███████║██║  ██║██║██║        ██║       ███████║   ██║   ╚██████╔╝██████╔╝██║╚██████╔╝███████║ ⚫
-- ⬛ ╚══════╝╚═╝  ╚═╝╚═╝╚═╝        ╚═╝       ╚══════╝   ╚═╝    ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝ ⬛

Config = {}

Config.Debug = false -- set true temporarily to enable /zonecheck diagnostics

-- UI
Config.ThemeColor = '#f1f1f1'
Config.Command = 'zones'
Config.CommandAliases = { 'zonecreator' } -- optional legacy alias
-- Exact coordinate calibration for the bundled GTA V Atlas map.
-- These values map FiveM world coordinates to the official/Flamm64 Atlas image.
-- Do not replace these with simple image-edge world bounds; the Atlas contains
-- ocean/padding around the playable map and needs an offset + scale transform.
Config.MapCalibration = {
    xScale = 0.02072,
    xOffset = 117.3,
    yScale = -0.0205,
    yOffset = 172.8
}

-- Framework
-- auto = detects Qbox, ESX, QBCore, otherwise runs standalone.
-- Options: 'auto', 'esx', 'qb', 'qbox', 'standalone', 'custom'
Config.Framework = 'auto'

-- These hooks make Shift Zones compatible with any framework that is not
-- built in. Leave them nil unless Config.Framework = 'custom'.
Config.CustomFramework = {
    -- Client: return jobName, groupName
    ClientGetJobAndGroup = nil,

    -- Client: return true when the local player matches one of the supplied
    -- job/group names. Useful for frameworks that do not expose one group value.
    ClientHasGroup = nil,

    -- Server: return true when source has one of the supplied creator groups.
    ServerHasGroupPermission = nil,
}

Config.Creator = {
    RequirePermission = true,
    AcePermission = 'shiftzones.admin',
    BypassAcePermission = 'shiftzones.bypass',
    AllowedGroups = { 'admin', 'god', 'superadmin' },
}

-- Notifications
-- auto will use the first available option in AutoPriority.
-- Built in: ox_lib, qbox, esx, qb, okok, wasabi, mythic, native, custom.
-- No notification resource is required; native is always available as fallback.
Config.Notifications = {
    Provider = 'auto',
    Position = 'center-left',
    DefaultDuration = 5000,
    Sound = false,

    AutoPriority = {
        'ox_lib',
        'wasabi',
        'okok',
        'qbox',
        'esx',
        'qb',
        'mythic',
        'native',
    },

    -- If Provider = 'custom', either set Custom to a client function or set
    -- CustomEvent to an event handled by your notification resource.
    -- Custom receives one table: title, description, type, duration, position.
    Custom = nil,
    CustomEvent = 'shift-zones:client:customNotify',
}

Config.CustomPoints = {
    UseHeightLimits = true, -- point zones use the in-game Ground Z + Height that you place
}

Config.Placement = {
    DefaultThickness = 15.0,
    MinThickness = 0.5,
    MaxThickness = 250.0,
    ThicknessStep = 0.50,
    FineThicknessStep = 0.10,
    HeightStep = 0.20,
    FineHeightStep = 0.05,
    MinimumPointSpacing = 0.25,
    RaycastDistance = 500.0,
    CameraMoveSpeed = 10.0,
    CameraFastSpeed = 28.0,
    CameraVerticalSpeed = 10.0,
    MouseSensitivity = 7.5,
}

Config.Runtime = {
    DetectionInterval = 150,        -- zone enter/exit checks
    VerticalTolerance = 1.5,         -- prevents tiny ped/vehicle Z changes from missing a valid zone
    EntityRefreshInterval = 400,    -- nearby player/vehicle cache refresh
    BypassRefreshInterval = 1000,   -- framework/group bypass refresh
    SpeedEnforcementInterval = 75,  -- speed cap / vehicle-change refresh
    WorldMarkerDrawDistance = 150.0,
    NearbyCollisionDistance = 50.0,
    GhostAlpha = 155, -- 0 = invisible, 255 = fully visible
}

Config.Blips = {
    DefaultColor = 3,
    RadiusColor = 3,
    RadiusAlpha = 70,
}

Config.DefaultZone = {
    thickness = 15.0,
}

Config.Security = {
    MaxZones = 250,
    MaxPointsPerZone = 64,
    MaxNameLength = 64,
    MaxMessageLength = 180,
}

-- ACE examples:
-- add_ace group.admin shiftzones.admin allow
-- add_ace group.admin shiftzones.bypass allow

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

Ensure Everything Is Working Well & Enjoy !!
{% endstep %}
{% endstepper %}
