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

# Elevators

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%2FaZ8HKwiZPWY5wVP807u7%2Ff71d6266-1232-4537-af05-9e6c0d45fba1.png?alt=media&amp;token=1f301d28-6eac-48ae-8a4a-50355d6ca348" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### ATM Hack

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

{% step %}

### Install The Items & Images

```
Images Are Located Inside The Install Folder
```

{% code expandable="true" %}

```lua
['elevator_keycard'] = {
    label = 'Elevator Keycard',
    weight = 2500,
    stack = true,
    close = true,
    description = 'A Keycard Used For Elevators'
},
```

{% endcode %}
{% endstep %}

{% step %}

### Configure Resource

Make Sure To Configure The Resource To Your Liking

{% code expandable="true" %}

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

Config = {}

-- Framework
-- auto, esx, qb, qbox, standalone, custom
Config.Framework = 'auto'

-- Inventory used only for configured floor item requirements.
-- auto, ox_inventory, qb-inventory, framework, custom, none
Config.Inventory = 'auto'

Config.Interface = {
    title = 'Elevator',
    position = 'right', -- right or left
    defaultTheme = 'dark', -- light or dark
    allowThemeToggle = true,
    rememberTheme = true,
    showFloorCount = true
}

Config.Interaction = {
    -- auto uses a supported target when one is running and falls back to Text UI.
    -- target forces the configured target system but can still fall back when enabled.
    -- textui always uses the configured Text UI system.
    mode = 'auto', -- auto, target, textui

    target = 'auto', -- auto, ox_target, qb-target, qtarget, custom
    textUI = 'auto', -- auto, ox_lib, qb, esx, shift, custom
    fallbackToTextUI = true,

    label = 'Use Elevator',
    key = 38, -- E
    keyLabel = 'E',
    distance = 2.0,
    targetDistance = 2.0,
    targetRadius = 1.35,
    debug = false
}

Config.Notifications = {
    -- auto, ox_lib, qbox, qb, esx, okok, custom, none
    system = 'ox_lib',
    title = 'Elevators',
    duration = 4500,

    -- top, top-right, top-left, bottom, bottom-right, bottom-left, center-right, center-left
    -- Applied automatically to notification systems that support per-notification positioning.
    position = 'center-left'
}

Config.Travel = {
    duration = 2500,
    progressLabel = 'Elevator In Motion',

    -- The approved sequence is:
    -- progress -> fade out -> teleport -> fade in.
    fadeOut = 500,
    fadeIn = 500,
    blackHold = 175,

    freezePlayer = true,
    allowInVehicle = false,

    sounds = {
        enabled = false,
        start = { sound = 'SELECT', soundset = 'HUD_FRONTEND_DEFAULT_SOUNDSET' },
        arrive = { sound = 'SELECT', soundset = 'HUD_FRONTEND_DEFAULT_SOUNDSET' }
    }
}

Config.Cooldown = {
    enabled = true,
    seconds = 5
}

Config.Security = {
    -- Server-side proximity validation uses server entity coordinates.
    originDistance = 4.0,
    tokenLifetime = 15,
    requestIntervalMs = 750,
    requireServerDistance = true
}

Config.Messages = {
    alreadyHere = 'You Are Already On This Floor.',
    notAuthorized = 'You Are Not Authorized To Access This Floor.',
    missingItem = 'You Are Missing The Required Elevator Access Item.',
    cooldown = 'Please Wait %s Seconds Before Using The Elevator Again.',
    tooFar = 'You Are Too Far Away From This Elevator.',
    invalidRequest = 'This Elevator Request Could Not Be Validated.',
    arrived = 'Arrived At %s.'
}

-- Access configuration for a floor:
-- access = {
--     jobs = { police = 2, ambulance = 0 }, -- minimum grade per job
--     items = { 'elevator_keycard' },
--     requireAllItems = false,
--     ace = 'shift.elevators.vip',
--     label = 'Keycard Required'
-- }
--
-- Leave access nil for a public floor.

Config.Elevators = {
    {
        id = 'topgolf',
        label = 'Top Golf',
        location = 'Top Golf Elevators',

        floors = {
            {
                id = 'topgolf1',
                number = '1',
                label = 'Floor One',
                description = 'Top Golf Floor One',
                coords = vector4(2505.2581, -304.6543, 92.9923, 94.1162),
                access = {
                    items = { 'elevator_keycard' },
                    requireAllItems = false,
                    label = 'Keycard Required'
                }
            },
            {
                id = 'topgolf2',
                number = '2',
                label = 'Floor Two',
                description = 'Top Golf Floor Two',
                coords = vector4(2505.2576, -304.6603, 97.8384, 92.9875),
                access = {
                    items = { 'elevator_keycard' },
                    requireAllItems = false,
                    label = 'Keycard Required'
                }
            },
            {
                id = 'topgolf3',
                number = '3',
                label = 'Floor Three',
                description = 'Top Golf Floor Three',
                coords = vector4(2505.2576, -304.6667, 102.6898, 94.5519),
                access = {
                    items = { 'elevator_keycard' },
                    requireAllItems = false,
                    label = 'Keycard Required'
                }
            },
            {
                id = 'topgolf4',
                number = '4',
                label = 'Floor Four',
                description = 'Top Golf Floor Four',
                coords = vector4(2505.5173, -304.6550, 107.5404, 94.8153),
                access = {
                    items = { 'elevator_keycard' },
                    requireAllItems = false,
                    label = 'Keycard Required'
                }
            },
            {
                id = 'topgolf5',
                number = '5',
                label = 'Floor Rooftop',
                description = 'Top Golf Rooftop',
                coords = vector4(2505.5173, -304.6610, 112.3917, 95.0043),
                access = {
                    items = { 'elevator_keycard' },
                    requireAllItems = false,
                    label = 'Keycard Required'
                }
            },
        }
    }
}

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

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