Configuration
The config files of Advanced Towing Job, the job lock, and the settings owners change most.
Advanced Towing Job is set up in its config files. It is not in the in-game /ggsettings menu. Edit the files, then restart gg_towjob.
Where the settings are
| File | What it holds |
|---|---|
utility.lua | Notifications, progress bar, debug mode, and framework, inventory and target overrides |
config/shared/general.lua | The Tow Yard location and job lock, levels, daily challenge, shop and competition prizes |
config/shared/jobs.lua | The trucks and every contract type with its pay |
config/shared/settings.lua | General switches, payment types, the contract pool, police impounds, the competition and the uniform |
config/lang.lua | Every text players see |
core/lib/miniBridge/client.lua | Vehicle 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 on the Tow Yard in config/shared/general.lua:
cfg.general.locations = {
{
label = lang:get("location.tow_yard"),
coords = vec4(-218.98, -1166.03, 23.02, 94.97),
job = "towing", -- your job name; nil lets everyone in
Only players with that job can then open the menu at the attendant, so hiring and firing through your framework or business script controls who can work. The job must exist in your framework.
Settings owners change
| Setting | File | What it does | Default |
|---|---|---|---|
cfg.general.locations[1].coords | general.lua | Where the attendant stands | vec4(-218.98, -1166.03, 23.02, 94.97) |
vehicle_spawns | general.lua | Where rented trucks spawn | 13 spots in the yard |
cfg.general.levels | general.lua | XP needed for each level and its money and XP bonus | 10 levels, up to +50% money and +100% XP |
cfg.DailyBonusChallenge | general.lua | Contracts needed for the daily reward, and the reward | 5 contracts: $1,000, 250 XP and 10 to 20 plastic, glass or copper |
cfg.general.shop | general.lua | Items for sale, price, unlock level and limits | The seven tow items plus materials |
cfg.general.competition | general.lua | Prizes for the top three | $15,000, $8,000 and $4,000 plus XP |
enabled, level, buyin | jobs.lua (cfg.jobs.vehicles) | Show a truck, its unlock level, and its cash deposit | Service Truck 1 / $250, Flatbed 3 / $500, Flatbed XL 6 / $1,000 |
level, reward, required_items | jobs.lua (cfg.jobs.types) | A contract's unlock level, its money, XP and item rewards, and the items it uses up | Per contract |
contract_expiration, mission_length | jobs.lua (cfg.jobs.types) | Minutes a contract waits in the pool, and minutes to finish it | Per contract |
general.clothing_enabled | settings.lua | Adds Swap Uniform at the attendant | true |
general.group_keys | settings.lua | Every group member gets the truck keys | true |
general.split_pay | settings.lua | Splits contract pay across the group | true |
general.currency_type | settings.lua | Currency shown in the menu | "USD" |
payment_types | settings.lua | cash or bank for payouts, daily rewards and deposits | "cash" |
contracts.pool_size | settings.lua | How many open contracts the pool holds | 20 to 50 |
contracts.refresh_interval | settings.lua | Seconds between pool refills | 15 * 60 |
contracts.cancel_behavior | settings.lua | A cancelled contract goes back to the pool (return_to_pool) or is deleted (remove) | "return_to_pool" |
police_impound.jobs | settings.lua | Jobs that can request an impound tow | { "police" } |
police_impound.command_enabled, command_name | settings.lua | The impound request command | true, "requesttow" |
police_impound.target_enabled | settings.lua | The Request tow truck option on vehicles | true |
competition.enabled, duration_hours | settings.lua | The competition and how long a round lasts | true, 7 * 24 |
Contract rewards can include materials such as rubber, scrap_metal, empty_jerrycan and aluminum, the daily reward gives plastic, glass or copper, and the shop sells copper, rubber, plastic, steel and iron. These items must exist in your inventory. Change them to item names your server has, or remove them.
utility.lua
| Setting | What it does | Default |
|---|---|---|
notifications | Notification style: ox, qb or esx | "ox" |
ProgressBar | Progress bar style: ox, qb or esx | "ox" |
framework | Forces a framework: qbx_core, qb-core or es_extended. Leave blank to detect | "" |
inventory | Forces an inventory by its resource name. Leave blank to detect | "" |
target | Forces ox_target or qb-target. Leave blank to detect | "" |
debugMode | Prints debug lines in the console | false |
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.
