Configuration

The config files of Advanced Bus Job, the job lock, buses, levels and the settings owners change most.

Advanced Bus Job is set up in its config files. It is not in the in-game /ggsettings menu. Edit the files, then restart gg_busjob.

Where the settings are

FileWhat it holds
utility.luaNotifications, progress bar, debug mode, and framework, inventory and target overrides
config/shared/general.luaThe Bus Depot location, blip, depot worker and job lock, the daily challenge and the levels
config/shared/vehicles.luaThe buses, their unlock level, price and seats
config/shared/routeData.luaEvery route, its stops and its pay. See Create new routes
config/shared/riderData.luaRider rarities, tips and the rider ped models
config/shared/settings.luaUI colour, render distance, bus despawn, uniform, currency, daily reset time and leaderboards
config/lang.luaEvery text players see
core/lib/miniBridge/client.luaVehicle keys and fuel

Lock the job to a job name

By default anyone can work the job. To make it a company job, set job in config/shared/general.lua:

Lua
cfg.targetSettings = {
    ["busjob"] = {
        icon = "fas fa-recycle",
        distance = 2.5,
        job = "busjob", -- your job name; nil lets everyone in
    },
}

Only players with that job can then use the depot worker, so hiring and firing through your framework or business script controls who can work. The job must exist in your framework.

Buses

Each bus in config/shared/vehicles.lua looks like this:

Lua
{
    id    = "bus",              -- spawn code
    label = "Bus",
    image = "vehicles/bus.png", -- a file in the UI, or a full image URL
    level = 6,                  -- level needed to buy it
    price = 1000,               -- one-time cash price
    seats = 14,                 -- riders it can carry
},
BusLevelPriceSeats
Coach1Free8
Bus6$1,00014
Air Bus6$1,00014

Every new player owns the first bus in the list and drives it until they buy and select another. A route can only start if the selected bus has at least the route's seats_required. For an add-on bus, use its spawn code as id and an image URL as image.

Settings owners change

SettingFileWhat it doesDefault
cfg.npcLocations[1].coordsgeneral.luaWhere the depot worker standsvector4(449.55, -650.86, 28.48, 260.34)
rentalSpawngeneral.luaWhere buses spawn11 spots at the depot
cfg.blipSettingsgeneral.luaThe depot blip sprite, colour and scaleSprite 513, colour 83
cfg.DailyBonusChallengegeneral.luaRoutes needed for the daily reward, and the reward5 routes: $1,000, 1,250 XP and 10 to 20 plastic, glass or copper
cfg.levelsgeneral.luaXP needed for each level and its money and XP bonus10 levels, up to +50% money and +100% XP
cfg.riderData.rarityriderData.luaHow often each rarity appears, its tip chance and tip rangeLocal to Celebrity, tips from $1 to $100
defaults.rendersettings.luaDistance in metres at which riders appear at the next stop100.0
defaults.despawnsettings.luaEnds the route if the driver stays out of the bus too longenabled = true, time = 120 seconds
defaults.outlinesettings.luaOutlines the bus while you are out of itenabled = true, distance = 100.0
defaults.vehicle.teleport_in_vehiclesettings.luaPuts the driver in the bus when it spawnsfalse
general.clothing_enabledsettings.luaAdds Swap Uniform at the depot workertrue
general.currency_typesettings.luaCurrency shown in the menu"USD"
reset_timesettings.luaWhen the daily challenge resets, and the time zone"00:00", "GMT"
popupsettings.luaThe help and progress popupsOn
leaderboards.total_requestssettings.luaPlayers shown on each leaderboard250
clothingsettings.luaThe uniform for male and female peds, by component and drawableOne work uniform

Route pay, tips, the daily reward and bus purchases all use cash.

utility.lua

SettingWhat it doesDefault
notificationsNotification style: ox, qb or esx"ox"
ProgressBarProgress bar style: ox, qb or esx"ox"
frameworkForces a framework: qbx_core, qb-core or es_extended. Leave blank to detect""
inventoryForces an inventory by its resource name. Leave blank to detect""
targetForces ox_target or qb-target. Leave blank to detect""
debugModePrints debug lines in the consolefalse

Vehicle keys and fuel

The job gives keys and sets fuel through core/lib/miniBridge/client.lua. It uses the first key script it finds started, in this order: bhd_garage, brutal_keys, cd_garage, F_RealCarKeysSystem, mk_vehiclekeys, mono_carkeys, MrNewbVehicleKeys, 0r-vehiclekeys, p_carkeys, Renewed-Vehiclekeys, qb-vehiclekeys, qbx_vehiclekeys, qs-vehiclekeys, tgiann-hotwire, vehicles_keys, wasabi_carlock.

Fuel works with bigDaddy-Fuel, cdn-fuel, esx-sna-fuel, frkn-fuelstationv4, lc_fuel, LegacyFuel, okokGasStation, ox_fuel, ps-fuel, qb-fuel, qs-fuelstations, rcore_fuel, Renewed-Fuel, ti_fuel and x-fuel. With any other fuel script, the job sets the game's own fuel level.

Support

Questions before you buy?

Ask the team in our Discord before you pay a thing. Setup help, update notes, giveaways and discount codes, all in one place.

831 online now2,241 members