📖
AdminPlus Development Documentation
  • AdminPlus Documentation
  • Support
  • 📍Information
    • You lack the required entitlement.
  • 💰Paid Scripts
    • [QB/ESX] Admin Jail [PAID]
    • [QB/ESX] Wigs & Bundles [PAID]
    • [QB/ESX] Bus Travel [PAID]
    • [QB/ESX] Business Promotion [PAID]
    • [QB/QBOX/ESX] Discord Presence [PAID]
    • [QB/ESX] Character Attributes [PAID]
    • [QB/ESX] Server Essentials [PAID]
    • [QB/ESX] Typing Indicator [PAID]
    • [QB/ESX] Anti-Fall [FREE]
    • ESX | Faction Chat [PAID]
    • ESX | Gym [PAID]
    • [STANDALONE] 65+ Car Pack [PAID]
  • 🆓Free Scripts
    • Anti Collision
    • Lost Items
    • Sell Drugs
    • Med System
Powered by GitBook
On this page
  1. Paid Scripts

[QB/ESX] Bus Travel [PAID]

Previous[QB/ESX] Wigs & Bundles [PAID]Next[QB/ESX] Business Promotion [PAID]

Last updated 3 months ago

This script is a bus script with the ability to add your own coordinates to where you want to teleport while third-eyeing bus stops & also included with a fade-animation that has progress bar while onboarding the bus. This is a good resource for ways to get around the city for those who don't have a vehicle & want to travel by "bus".

  • Group/Job lock specific teleports.

  • Configurable text (language).

  • Configurable coordinates for teleports.

  • Configurable text for bus locations.

  • Configurable pricing per bus ride.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
  • This resource is drag/drop. You will just need to add the following inside of your server.cfg after you've dropped the file into your resources.

ensure adminplus-bus

Feel free to check the config.lua & customize the bus stop locations.

-- ███████████████████████████████████████████████████████████████████████████ --    

Config = {}

--[[

    add this under "description" if you want to job lock who can access what teleport.

    groups = {
        'none',
    },

    example:

        [1] = {
            coords = vec3(57.07, -1539.88, 29.29),
            heading = 45.1057,
            title = 'LSPD',
            description = '',
            groups = {
                'police',
            },
        },

]]

Config.Text = {
    ['NoAccessTitle'] = 'No Access',
    ['NoAccessDescription'] = 'You do not have access to this bus stop.',
    ['Interact'] = 'Interact'
}

--  ____                                                      ____                 
-- |  _ \   _ __    ___     __ _   _ __    ___   ___   ___    | __ )    __ _   _ __ 
-- | |_) | | '__|  / _ \   / _` | | '__|  / _ \ / __| / __|   |  _ \   / _` | | '__|
-- |  __/  | |    | (_) | | (_| | | |    |  __/ \__ \ \__ \   | |_) | | (_| | | |   
-- |_|     |_|     \___/   \__, | |_|     \___| |___/ |___/   |____/   \__,_| |_|   
--                         |___/                                                    

Config.TeleportTime = 10000

Config.OxLibProgress = true

function ProgressBar()
    if Config.OxLibProgress then
        lib.progressCircle({
            duration = Config.TeleportTime,
            label = 'Taking the bus...',
            position = 'bottom',
            useWhileDead = false,
            canCancel = false,
            disable = {
                car = true,
                move = true,
                combat = true,
            },
        })
    else
        Wait(Config.TeleportTime)
    end
end

-- ____                    ____    _                         
-- | __ )   _   _   ___    / ___|  | |_    ___    _ __    ___ 
-- |  _ \  | | | | / __|   \___ \  | __|  / _ \  | '_ \  / __|
-- | |_) | | |_| | \__ \    ___) | | |_  | (_) | | |_) | \__ \
-- |____/   \__,_| |___/   |____/   \__|  \___/  | .__/  |___/
--                                               |_|          

Config.Price = 5

-- This is used to be able to third eye the bus stops
Config.Item = 'lametro' -- use me if you want item to be used before traveling
--Config.Item = nil -- if you do not want a item to be used uncomment me & comment the one above

Config.Distance = 2.0

Config.BusStops = {
    Busses = { -- Bus Stop
        [1] = {
            coords = vec3(439.0709, -2032.1765, 23.5744),
            heading = 321.33,
            title = 'Watts',
            description = '',
        },
        [2] = {
            coords = vec3(57.07, -1539.88, 29.29),
            heading = 45.1057,
            title = 'Strawberry Ave (Inglewood)',
            description = '',
        },
        [3] = {
            coords = vec3(768.3368, -941.8106, 25.7075),
            heading = 0.0,
            title = 'Popular St',
            description = '',
        },
        [4] = {
            coords = vec3(-1214.73, -1218.43, 7.69),
            heading = 0.0,
            title = 'Bay City Ave',
            description = '',
        },
        [5] = {
            coords = vec3(-1476.15, -634.91, 30.58),
            heading = 0.0,
            title = 'Del Perro (Santa Monica)',
            description = '',
        },
        [6] = {
            coords = vec3(356.09, -1066.97, 29.56),
            heading = 0.0,
            title = 'Vespucci (LSPD)',
            description = '',
            groups = {
                'police',
            },
        },
    },
}

-- ███████████████████████████████████████████████████████████████████████████ --    
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
V 1.0.0
  • Original Release

V 1.0.1
  • Added required 'item' to be able to third-eye bus stops. (useful for metro cards etc).

V 1.0.2
  • Added QB/ESX compatability.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
  • Forums Post - none

  • Showcase (video) - none

💰
Tebex (purchase)
Support (discord)