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

# Passive

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%2FKATzezWvOSXZB51GulM4%2Fpassive.png?alt=media&amp;token=6d59c6f5-4061-457b-9e42-339ceb1e7f2f" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Passive

{% endstep %}

{% step %}

### Ensure All Dependencies Are Installed

```
No Dependencies Needed
```

{% endstep %}

{% step %}

### Drag & Drop

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

{% step %}

### Ensure The Resource

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

{% step %}

### Configure The Resource

{% code expandable="true" %}

```lua
-- 💠 ███████╗██╗  ██╗██╗███████╗████████╗    ███████╗████████╗██╗   ██╗██████╗ ██╗ ██████╗ ███████╗ 💠
-- 🔷 ██╔════╝██║  ██║██║██╔════╝╚══██╔══╝    ██╔════╝╚══██╔══╝██║   ██║██╔══██╗██║██╔═══██╗██╔════╝ 🔷
-- 🌀 ███████╗███████║██║█████╗     ██║       ███████╗   ██║   ██║   ██║██║  ██║██║██║   ██║███████╗ 🌀
-- 🔹 ╚════██║██╔══██║██║██╔══╝     ██║       ╚════██║   ██║   ██║   ██║██║  ██║██║██║   ██║╚════██║ 🔹
-- 💎 ███████║██║  ██║██║██║        ██║       ███████║   ██║   ╚██████╔╝██████╔╝██║╚██████╔╝███████║ 💎
-- 🔵 ╚══════╝╚═╝  ╚═╝╚═╝╚═╝        ╚═╝       ╚══════╝   ╚═╝    ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝ 🔵

Config = {}

-- Command settings.
Config.Command = {
    Enabled = true,
    Name = 'passive',
    Restricted = false
}

-- Optional FiveM key mapping.
-- Disabled by default so existing servers do not gain a new bind unexpectedly.
Config.Keybind = {
    Enabled = false,
    DefaultKey = 'F6',
    Description = 'Toggle Passive Mode'
}

-- Passive mode behavior.
Config.Passive = {
    Invincible = true,
    DisableDamage = true,
    DisableFiring = true,
    DisableMelee = true,
    DisableAim = false,
    DisableReload = false,
    DisableWeaponWheel = false,
    DisableVehicleWeapons = true,

    -- Extra controls to disable while passive.
    -- FiveM control IDs: https://docs.fivem.net/docs/game-references/controls/
    DisabledControls = {}
}

-- Optional local player state bag for other resources to read.
-- Do not use a client-replicated state bag as a trusted security check server-side.
Config.StateBag = {
    Enabled = true,
    Key = 'shiftPassive',
    Replicated = true
}

-- Notification settings.
-- Provider options:
-- auto, ox_lib, qbox, qbcore, esx, okok, wasabi, brutal, codem_supreme, codem, mythic, native, custom, none
--
-- "auto" checks for supported running resources and uses the first match.
-- "custom" calls Config.Notifications.Custom(data), allowing ANY notification
-- resource to be integrated without editing the passive-mode core.
Config.Notifications = {
    Enabled = true,
    Provider = 'ox_lib',
    Fallback = 'native',

    -- Order used only when Provider = 'auto'.
    AutoOrder = {
        'ox_lib',
        'wasabi',
        'brutal',
        'codem_supreme',
        'codem',
        'okok',
        'mythic',
        'qbox',
        'qbcore',
        'esx'
    },

    On = {
        Title = 'Passive Mode',
        Description = 'Passive Mode Has Been Enabled',
        Type = 'success',
        Duration = 5000,
        Position = 'center-left',
        Icon = 'shield-halved',
        IconColor = nil,
        Sound = true
    },

    Off = {
        Title = 'Passive Mode',
        Description = 'Passive Mode Has Been Disabled',
        Type = 'error',
        Duration = 5000,
        Position = 'center-left',
        Icon = 'shield',
        IconColor = nil,
        Sound = true
    },

    -- Used only when Provider = 'custom'.
    -- Replace the example body with your notification resource's event/export.
    Custom = function(data)
        -- Example:
        -- exports['your_notify']:Notify(data.Title, data.Description, data.Type, data.Duration)
        -- TriggerEvent('your_notify:client:notify', data)
        print(('[shift-passive] %s: %s'):format(data.Title or 'Notification', data.Description or ''))
    end
}

-- Debug messages are console-only and disabled by default.
Config.Debug = false

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

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