> 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-10.md). Agents can also search and read this documentation through its [MCP server](https://shift-studios.gitbook.io/docs/~gitbook/mcp).

# Crosshair

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%2FIYhn7D7CHePWPm2Pp92h%2Fmaxresdefault.jpg?alt=media&amp;token=3056a69c-d397-4503-bc34-d57e882830a3" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Crosshair

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-crosshair In Your Server CFG.
{% endstep %}

{% step %}

### Configure Resource

Make Sure To Configure The Resource To Your Liking

{% code expandable="true" %}

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

Config = {}

-- Framework is only used for optional integrations such as notifications.
-- The crosshair system itself works without a framework.
-- Options: 'auto', 'esx', 'qb', 'qbox', 'standalone'
Config.Framework = 'auto'

Config.Commands = {
    Open = 'crosshair',
    Visibility = 'crosshairshow'
}

Config.Keybind = {
    Enabled = true,
    Key = 'F9',
    Description = 'Open Crosshair Menu'
}

Config.UI = {
    Side = 'left', -- Default menu side for first-time players: 'left' or 'right'
    Title = 'Crosshair Menu',
    Subtitle = 'Customize Your Crosshair'
}

Config.Crosshair = {
    Default = 1,
    DefaultVisibility = 'aim', -- 'aim' or 'always'
    DefaultSize = 32,
    DefaultOpacity = 100,

    MinSize = 18,
    MaxSize = 54,
    MinOpacity = 25,
    MaxOpacity = 100,

    HideDefaultReticle = true,
    HideWhilePaused = true,

    -- Keeps existing player choices when updating from the old Lucky version.
    MigrateLegacySettings = true
}

Config.Storage = {
    Crosshair = 'shift_crosshair_selected',
    Visibility = 'shift_crosshair_visibility',
    Size = 'shift_crosshair_size',
    Opacity = 'shift_crosshair_opacity',
    UiSide = 'shift_crosshair_ui_side'
}

Config.LegacyStorage = {
    Crosshair = 'lucky_crosshair',
    AlwaysShow = 'lucky_crosshair_always_show'
}

Config.Notifications = {
    Enabled = false,
    System = 'auto', -- 'auto', 'ox_lib', 'qbox', 'qb', 'esx', 'standalone', 'custom'
    Position = 'top-right',
    Duration = 3500,
    Title = 'Shift Crosshair',

    Messages = {
        Selected = 'Crosshair %s Has Been Selected And Saved.',
        VisibilityAim = 'Crosshair Will Now Show While Aiming.',
        VisibilityAlways = 'Crosshair Will Now Always Show.',
        Reset = 'Crosshair Settings Have Been Reset.',
        InvalidOption = 'Use /crosshairshow aim, /crosshairshow always, Or /crosshairshow toggle.'
    },

    -- Used only when System = 'custom'.
    -- Parameters: message, notificationType, duration
    Custom = function(message, notificationType, duration)
        -- Add your custom notification export/event here.
    end
}

Config.Crosshairs = {}

for i = 1, 70 do
    Config.Crosshairs[i] = {
        label = ('Crosshair %s'):format(i),
        image = ('./images/crosshairs/%s.png'):format(i)
    }
end

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

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