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

# Flipped

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%2FelJQZ66qtWYwnQbqz6g9%2Fflipped.png?alt=media&amp;token=f3ffb72d-8b20-458b-8adc-aa3f897b5717" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Flipped

Read Everything Below To Install
{% endstep %}

{% step %}

### Ensure All Dependencies Are Installed

```
Required: ox_lib, ox_target

Framework Support: ESX, QBCore, Qbox & Standalone

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

{% step %}

### Configure The Resource

{% code expandable="true" %}

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

Config = {}

Config.Debug = false

Config.Target = {
    Name = 'shift_flipped:flipVehicle',
    Label = 'Flip Back Over',
    Icon = 'fa-solid fa-car-burst',
    Distance = 2.5
}

Config.Progress = {
    Duration = 6500,
    Label = 'Flipping Vehicle Back Over...',
    CanCancel = true,
    FaceVehicle = true,
    FaceVehicleDuration = 650,
    Animation = {
        Dict = 'mini@repair',
        Clip = 'fixing_a_ped',
        Flag = 1
    }
}

-- Notification systems:
-- auto, ox_lib, qbox, qb, esx, wasabi, okok, mythic, custom
--
-- The flip system itself is framework independent and works with
-- ESX, QBCore, Qbox, or Standalone without a framework setting.
Config.Notifications = {
    System = 'ox_lib',
    Fallback = 'ox_lib',

    -- Used only when System = 'auto'. The first started resource wins.
    AutoPriority = {
        'wasabi',
        'okok',
        'qbox',
        'qb',
        'esx',
        'mythic',
        'ox_lib'
    },

    Position = 'center-left',
    Duration = 4000,
    Sound = true,

    -- Used only when System = 'custom'.
    -- Replace the body with your notification export/event.
    Custom = nil,
    -- Example:
    -- Custom = function(data)
    --     exports['your_notify']:Notify(data.Title, data.Description, data.Duration, data.Type)
    -- end,

    Success = {
        Title = 'Vehicle Flipped',
        Description = 'The vehicle was flipped back onto its wheels.',
        Type = 'success',
        Icon = 'car'
    },

    Cancelled = {
        Title = 'Flip Cancelled',
        Description = 'You stopped flipping the vehicle.',
        Type = 'error',
        Icon = 'xmark'
    },

    NoControl = {
        Title = 'Flip Failed',
        Description = 'Unable to gain control of this vehicle. Try again.',
        Type = 'error',
        Icon = 'triangle-exclamation'
    },

    InvalidVehicle = {
        Title = 'Flip Failed',
        Description = 'The vehicle is no longer flipped or is too far away.',
        Type = 'error',
        Icon = 'triangle-exclamation'
    },

    Busy = {
        Title = 'Please Wait',
        Description = 'You are already flipping a vehicle.',
        Type = 'error',
        Icon = 'clock'
    }
}

-- A vehicle is considered flipped when its upright value is at or below this
-- value. 1.0 is perfectly upright, 0.0 is on its side, and -1.0 is upside down.
Config.MaximumUprightValue = 0.35

-- Prevent targeting vehicles that are still moving quickly.
Config.MaximumVehicleSpeed = 1.5

-- Maximum distance allowed when the progress finishes.
Config.FinishDistance = 3.5

-- Time allowed to request network control of the vehicle.
Config.NetworkControlTimeout = 2000

-- Small client-side delay to prevent accidental target spam.
Config.ActionCooldown = 1500

-- Raise the vehicle slightly before placing it properly on the ground.
Config.LiftHeight = 0.65

-- Leave the engine running after a successful flip when it was running before.
Config.RestoreEngineState = true

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

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