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

# Hiding

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%2Feu6MgdjXm8gUZY5AktrD%2Fhiding.png?alt=media&amp;token=2628a97c-bbce-4689-8cf4-dca18dea5159" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Hiding

Read Everything Below To Install
{% endstep %}

{% step %}

### Ensure All Dependencies Are Installed

```
Required: None

Framework Support: ESX, QBCore, Qbox & Standalone

Framework, Target, Text UI & Notification Detection Is Automatic And Can Also Be Manually Configured.
```

{% endstep %}

{% step %}

### Drag & Drop

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

{% step %}

### Ensure The Resource

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

{% step %}

### Configure The Resource

{% code expandable="true" %}

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

Config = {}

Config.Debug = false

-- Framework is only used by bridge integrations that need it.
-- auto, esx, qb, qbox, standalone
Config.Framework = 'esx'

Config.Interaction = {
    -- auto = target when a supported target is running, otherwise textui
    -- target = force the configured target system
    -- textui = force the configured text UI system
    Type = 'target',

    -- auto, ox_target, qb-target, qtarget, custom
    Target = 'ox_target',

    -- auto, ox_lib, qb, esx, okokTextUI, cd_drawtextui, standalone, custom
    TextUI = 'ox_lib',

    -- Universal Text UI position used by supported bridges.
    -- left-center, right-center, top-center, bottom-center
    TextUIPosition = 'right-center',

    -- Optional per-system overrides. Leave nil to use TextUIPosition above.
    -- ox_lib: left-center, right-center, top-center, bottom-center
    -- qb: left, right, top
    -- okokTextUI: left, right
    TextUIPositionOverrides = {
        ox_lib = nil,
        qb = nil,
        esx = nil,
        okokTextUI = nil,
        cd_drawtextui = nil,
        standalone = nil,
        custom = nil,
    },

    Key = 38, -- E
    KeyLabel = 'E',
    ScanInterval = 500,
    TargetDistance = 2.5,
}

Config.Notifications = {
    -- auto, ox_lib, qbox, qb, esx, okokNotify, mythic_notify, standalone, custom
    System = 'ox_lib',
    Duration = 5000,
    Position = 'center-left',
}

Config.Hiding = {
    FreezeWhileHidden = true,
    DisableCollisionWhileHidden = true,
    InvincibleWhileHidden = true,
    DisableCombatWhileHidden = true,

    -- Allows the interaction key to exit even when using a target system.
    AllowExitKey = true,
}

Config.Trash = {
    Enabled = true,
    Distance = 2.0,
    HideOffset = vector3(0.0, -0.15, 0.35),
    ExitOffset = vector3(0.0, -1.2, 0.0),

    Models = {
        'prop_dumpster_01a',
        'prop_dumpster_02a',
        'prop_dumpster_02b',
        'prop_dumpster_3a',
        'prop_dumpster_4a',
        'prop_dumpster_4b',
        'prop_skip_01a',
        'prop_skip_02a',
        'prop_skip_06a',
        'prop_skip_08a',
    }
}

Config.Trunk = {
    Enabled = true,
    Distance = 2.0,
    RequireUnlocked = true,
    OpenDoorOnEnterExit = true,
    DoorIndex = 5,

    ExitOffset = vector3(0.0, -3.0, 0.0),
    AttachOffset = vector3(0.0, -2.2, 0.15),
    AttachRotation = vector3(0.0, 0.0, 0.0),

    BlockedVehicleClasses = {
        [8] = true,  -- Motorcycles
        [13] = true, -- Bicycles
        [14] = true, -- Boats
        [15] = true, -- Helicopters
        [16] = true, -- Planes
        [21] = true, -- Trains
    }
}

Config.Text = {
    TrashEnter = 'Get In Trash',
    TrashExit = 'Get Out Of Trash',
    TrunkEnter = 'Get In Trunk',
    TrunkExit = 'Get Out Of Trunk',

    TrunkLocked = 'This Trunk Is Locked',
    TrunkUnavailable = 'This Vehicle Does Not Have A Usable Trunk',
}

-- Custom integrations are only used when the matching system above is set to custom.
-- These hooks also make it easy to add any unsupported third-party resource without editing core files.
Config.Custom = {
    Notify = function(message, notifyType, duration)
        -- Add Custom Notification Here
    end,

    ShowTextUI = function(text, position)
        -- Add Custom Text UI Show Here
        -- position uses Config.Interaction.TextUIPosition / TextUIPositionOverrides.custom
    end,

    HideTextUI = function()
        -- Add Custom Text UI Hide Here
    end,

    RegisterTargets = function(callbacks)
        -- callbacks.canEnterTrash(entity)
        -- callbacks.enterTrash(entity)
        -- callbacks.canExitTrash(entity)
        -- callbacks.exitTrash(entity)
        -- callbacks.canEnterTrunk(entity)
        -- callbacks.enterTrunk(entity)
        -- callbacks.canExitTrunk(entity)
        -- callbacks.exitTrunk(entity)
        -- Register Custom Target Options Here
    end,

    RemoveTargets = function()
        -- Remove Custom Target Options Here
    end,
}

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

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