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

# Seat Switch

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%2FNc3kCK9s65SX75wcvTeF%2Fseat%20switch.png?alt=media&amp;token=ac9dc409-4e0c-49bf-88e5-cc91e45f110a" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Seat Switch

Read Everything Below To Install
{% 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-seatswitch In Your Server CFG.
{% endstep %}

{% step %}

### Configure The Resource

{% code expandable="true" %}

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

Config = {}

-- Command Settings
Config.Command = 'seat'
Config.CommandAliases = {} -- Example: { 'switchseat', 'seatswitch' }

-- Small delay used to verify the player actually moved into the requested seat.
Config.SeatSwitchCheckDelay = 100

-- User-friendly seat labels. GTA seat index -1 is the driver.
Config.SeatNames = {
    [-1] = 'Driver',
    [0]  = 'Passenger',
    [1]  = 'Back Left',
    [2]  = 'Back Right',
    [3]  = 'Extra Seat 1',
    [4]  = 'Extra Seat 2'
}

-- Notification Settings
Config.Notifications = {
    Enabled = true,

    -- Supported: 'auto', 'ox_lib', 'wasabi_notify', 'okokNotify',
    -- 'brutal_notify', 'mythic_notify', 'qb-core', 'es_extended',
    -- 'custom', 'native'
    Provider = 'ox_lib',

    -- Used only when Provider = 'auto'. First started resource wins.
    AutoPriority = {
        'ox_lib',
        'wasabi_notify',
        'okokNotify',
        'brutal_notify',
        'mythic_notify',
        'qb-core',
        'es_extended'
    },

    -- If a configured provider is unavailable or errors, fall back safely.
    FallbackToNative = true,

    Title = 'Seat Switch',
    Duration = 3500,
    Position = 'center-left', -- Used by providers that support positions.
    Sound = true,           -- Used by providers that support sounds.
    Icon = false,           -- Example: 'car-side'. false disables a custom icon.

    -- Fully configurable messages. Each entry can also override title, duration,
    -- position, sound, and icon if you want different settings per notification.
    Messages = {
        NotInVehicle = {
            text = 'You Are Not In A Vehicle',
            type = 'error'
        },
        Usage = {
            text = 'Usage: /%s [seat]',
            type = 'error'
        },
        InvalidSeat = {
            text = 'Invalid Seat',
            type = 'error'
        },
        SeatUnavailable = {
            text = 'That Seat Is Occupied Or Unavailable',
            type = 'error'
        },
        AlreadyInSeat = {
            text = 'You Are Already In That Seat',
            type = 'info'
        },
        SwitchFailed = {
            text = 'Unable To Switch To That Seat',
            type = 'error'
        },
        Switched = {
            text = 'Switched To %s',
            type = 'success'
        }
    },

    -- Used only when Provider = 'custom'. Put any notification export/event here.
    -- data = {
    --     title = string,
    --     description = string,
    --     type = 'info' | 'success' | 'error' | 'warning',
    --     duration = number,
    --     position = string,
    --     sound = boolean,
    --     icon = string | false
    -- }
    Custom = function(data)
        -- Example:
        -- exports['your_notify']:Notify(data.title, data.description, data.type, data.duration)
        return false
    end
}

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

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