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

# Travel

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%2FbdpCAtskOfZnljjBxwv6%2Fb8ab0537-a9a3-4926-9ed2-4d5032b1287f.png?alt=media&amp;token=f710cf82-a81f-46fc-b169-65188892e539" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Travel

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

{% step %}

### Install The Items & Images

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

{% code expandable="true" %}

```lua
['buspass'] = {
    label = 'Bus Pass',
    weight = 0,
    stack = true,
    close = true,
    description = 'A public transit bus pass.'
},

Images Are Located Inside The Install Folder
```

{% endcode %}
{% endstep %}

{% step %}

### Configure Resource

Make Sure To Configure The Resource To Your Liking

{% code expandable="true" %}

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

Config = {}

Config.Debug = false

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

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

-- auto, ox_inventory, qb-inventory, qs-inventory, codem-inventory, framework, custom
Config.Inventory = 'auto'

-- auto, ox_lib, qbox, qbcore, esx, custom
Config.Notification = 'auto'

Config.Interface = {
    title = 'City Transport',
    subtitle = 'Select A Bus Stop',
    maxVisibleStops = 6,
    closeWithEscape = true,

    -- light or dark
    defaultTheme = 'light',
    allowThemeToggle = true,
    rememberTheme = true,

    -- left or right. The ticket shop is never centered on desktop.
    defaultShopSide = 'left',
    allowShopSideToggle = true,
    rememberShopSide = true,

    -- Player-facing information pills above the stop list.
    showPlayerInfo = true,
    shopTitle = 'Bus Pass'
}

Config.Interaction = {
    stopLabel = 'Travel',
    stopIcon = 'fa-solid fa-bus',
    stopDistance = 2.0,
    stopZoneSize = vector3(1.4, 1.4, 2.2),
    stopZoneRotation = 0.0,
    debugZones = false,

    ticketLabel = 'Buy Bus Pass',
    ticketIcon = 'fa-solid fa-ticket',
    ticketDistance = 2.0,
    ticketModels = {
        'prop_park_ticket_01'
    }
}

Config.Travel = {
    cooldown = 60,
    cooldownOnCancel = true,
    duration = 5000,
    canCancel = true,
    refundOnCancel = true,
    freezePlayer = true,
    disableCombat = true,
    allowInVehicle = false,
    allowWhileDead = false,
    validationDistance = 5.0,
    defaultFare = 50,
    fareEnabled = true,
    fareAccount = 'cash',
    hideCurrentStop = true,
    progressTitle = 'Traveling',
    progressText = 'Waiting For Transport.',
    progressMeta = 'Preparing Route',
    cancelText = 'Cancel Travel'
}

Config.Pass = {
    required = true,
    item = 'buspass',
    label = 'Standard Bus Pass',
    amountRequired = 1,
    consumeOnTravel = false
}

Config.TicketShop = {
    enabled = true,
    item = 'buspass',
    label = 'Standard Bus Pass',
    price = 25,
    minQuantity = 1,
    maxQuantity = 10,
    purchaseCooldown = 1,
    paymentAccounts = {
        { value = 'cash', label = 'Cash' },
        { value = 'bank', label = 'Bank' }
    }
}

Config.Notifications = {
    title = 'City Transport',
    duration = 4000,
    position = 'center-left',
    messages = {
        invalidRequest = 'That travel request could not be validated.',
        tooFar = 'You are too far away from the bus stop.',
        cooldown = 'Please wait %s seconds before traveling again.',
        noPass = 'You need a bus pass to travel.',
        notEnoughPasses = 'You do not have enough bus passes.',
        noMoney = 'You do not have enough money for this trip.',
        farePaid = 'You paid $%s for your trip.',
        passUsed = '%s bus pass used. You have %s remaining.',
        travelCancelled = 'Travel cancelled.',
        purchaseCooldown = 'Please wait before purchasing another bus pass.',
        invalidQuantity = 'That purchase quantity is not allowed.',
        invalidPayment = 'That payment method is not available.',
        cannotCarry = 'You do not have enough inventory space.',
        purchaseFailed = 'The bus pass purchase could not be completed.',
        purchaseSuccess = 'Purchased %s bus pass%s for $%s.',
        alreadyTraveling = 'You already have a travel request in progress.',
        cannotTravelVehicle = 'Exit your vehicle before traveling.',
        cannotTravelDead = 'You cannot travel right now.'
    }
}

Config.Blips = {
    enabled = true,
    sprite = 513,
    color = 1,
    scale = 0.3,
    shortRange = true,
    label = 'Bus Stop'
}

-- Keep stop coordinates server-known. The server uses these values to validate travel requests.
Config.Stops = {
    {
        name = 'Dashound Bus Center',
        description = 'Downtown Bus Center',
        coords = vector3(436.1388, -644.3604, 28.7391),
        heading = 0.0,
        fare = 10,
        blip = true
    },
    {
        name = 'Strawberry Avenue',
        description = 'Strawberry Avenue Bus Stop',
        coords = vector3(57.0362, -1540.9469, 29.7427),
        heading = 0.0,
        fare = 10,
        blip = true
    },
    {
        name = 'Job Center',
        description = 'Job Center Bus Stop',
        coords = vector3(-250.2314, -887.5410, 31.0719),
        heading = 0.0,
        fare = 20,
        blip = true
    },
    {
        name = 'Maze Bank Arena',
        description = 'Maze Bank Arena Bus Stop',
        coords = vector3(-135.1315, -2036.9136, 23.4040),
        heading = 0.0,
        fare = 15,
        blip = true
    }
}

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

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