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

# Slash

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%2FpyzWplsIzRylVQGFVOyk%2Fslash.png?alt=media&amp;token=99c35fb1-d2a8-4e57-bf7d-ff4ef234c019" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Slash

Read Everything Below To Install
{% endstep %}

{% step %}

### Ensure All Dependencies Are Installed

```
Required: None

Optional Integrations: ox_lib, ox_target, qb-target, qtarget, ox_inventory & Framework Inventories

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

{% step %}

### Configure The Resource

{% code expandable="true" %}

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

Config = {}

Config.Debug = false

-- Framework is intentionally optional. The resource works without a framework.
-- auto, qbox, qb, esx, standalone
Config.Framework = 'auto'

-- auto, ox_inventory, qb, esx, custom, none
-- Qbox servers commonly use ox_inventory, which is detected automatically.
Config.Inventory = 'auto'

-- auto, ox_target, qb-target, qtarget, custom, none
Config.TargetSystem = 'auto'

Config.RequireItem = true
Config.RequiredItemMode = 'any' -- any or all
Config.RequiredAmount = 1

Config.RequiredItems = {
    { name = 'WEAPON_SWITCHBLADE', label = 'Switchblade' },
    { name = 'weapon_switchblade', label = 'Switchblade' }
}

Config.ConsumeItem = {
    enabled = false,
    amount = 1
}

Config.Target = {
    optionName = 'shift_slash_slash_tire',
    label = 'Slash Tire',
    icon = 'fas fa-scissors',
    distance = 1.8
}

Config.Wheel = {
    maxInteractionDistance = 1.65,
    maxVehicleSpeedKmh = 5.0,
    allowWhileInVehicle = false,
    blockIfDriverInside = false,
    burstCompletely = true,
    damage = 1000.0
}

-- GTA tire indices supported by the native.
Config.Wheels = {
    { bone = 'wheel_lf',  tyreIndex = 0 },
    { bone = 'wheel_rf',  tyreIndex = 1 },
    { bone = 'wheel_lm1', tyreIndex = 2 },
    { bone = 'wheel_rm1', tyreIndex = 3 },
    { bone = 'wheel_lr',  tyreIndex = 4 },
    { bone = 'wheel_rr',  tyreIndex = 5 },
    { bone = 'wheel_lm2', tyreIndex = 45 },
    { bone = 'wheel_rm2', tyreIndex = 47 }
}

Config.Interface = {
    accent = '#0001fc',
    logo = 'https://r2.fivemanage.com/BY7ePdGhOIyQZylpoqgVy/shiftstudioslogopng.png',
    showResultScreen = true,
    resultDuration = 1100
}

-- Reusable Shift Studios precision minigame.
-- The same NUI component can be called from another resource through the
-- StartMinigame export at the bottom of client/ui.lua.
Config.Minigame = {
    enabled = true,
    allowCancel = true,
    title = 'Precision Slash',
    subtitle = 'Time each cut inside the highlighted precision zone.',
    rounds = {
        { zoneWidth = 22, speed = 0.42, label = 'Standard Difficulty' },
        { zoneWidth = 18, speed = 0.53, label = 'Focused Difficulty' },
        { zoneWidth = 14, speed = 0.67, label = 'Precision Difficulty' }
    },
    text = {
        cutZone = 'Cut Zone',
        action = 'Slash',
        cancel = 'Cancel',
        keyHint = 'Space / E',
        hint = 'Press Space, E, or click Slash while inside the zone.',
        first = 'Line Up The Blade',
        middle = 'Keep The Pressure Steady',
        last = 'Finish The Cut',
        ready = 'Three precise cuts are required.',
        failed = 'Missed the cut zone.'
    }
}

Config.Action = {
    progressEnabled = true,
    duration = 1800,
    canCancel = true,
    title = 'Slashing Tire',
    description = 'Cutting through the selected tire.',

    animation = {
        enabled = true,
        dict = 'melee@knife@streamed_core_fps',
        clip = 'ground_attack_on_spot',
        flag = 0
    }
}

-- auto, ox_lib, framework, qb, qbox, esx, okok, mythic, custom, none
-- Use custom for any notification resource not listed here and edit client/open.lua.
Config.Notify = {
    provider = 'auto',
    title = 'Shift Slash',
    duration = 3500,
    position = 'center-left'
}

Config.Text = {
    success = 'You Slashed The Tire',
    noItem = 'You Need A %s To Slash This Tire',
    alreadySlashed = 'This Tire Is Already Flat',
    vehicleMoving = 'The Vehicle Is Moving Too Fast',
    driverInside = 'You Cannot Slash A Tire While Someone Is Driving',
    failedSkill = 'You Failed To Slash The Tire',
    cancelled = 'You Stopped Slashing The Tire',
    busy = 'You Are Already Slashing A Tire',
    tooFar = 'You Are Too Far Away From The Wheel',
    invalidWheel = 'No Valid Tire Was Found',
    invalidVehicle = 'This Vehicle Cannot Be Used',
    cooldown = 'Slow Down Before Trying Again',
    serverRejected = 'The Tire Could Not Be Slashed'
}

Config.Server = {
    validationDistance = 5.0,
    actionCooldownMs = 2000,
    tyreLockMs = 2500,
    requestTimeoutMs = 8000,
    actionTokenTtlMs = 60000,
    minimumFinishDelayMs = 1200
}

```

{% endcode %}
{% endstep %}

{% step %}

### Configure Your Discord Logs

{% code expandable="true" %}

```
Please Setup Your Discord Logs here server/config.discord.lua
```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

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