Skip to Content

Configuration

Defaults below are copied from the shipped config.lua for version 1.0.0. Settings are described using the Configuration conventions.

⚙️ Core, payment and interaction

Config.Debug = true Config.OpenCommand = 'trucking' Config.PayAccount = 'cash' -- cash or bank Config.PurchaseAccounts = { default = 'cash', allowed = { cash = true, bank = true } } Config.Interaction = 'target' -- drawtext or target Config.Target = 'auto' -- auto, qb, ox, none Config.DrawText = { key = 'E', theme = 'purple' } Config.ReturnTruckToPort = true Config.TrailerHookDistance = 7.5
OptionDefaultWhat it does
Config.DebugtrueShips enabled. Turn off in production.
Config.PayAccount‘cash’Where route payouts go: cash or bank.
Config.PurchaseAccountscash default, cash and bank allowedAccounts that can pay for trucks and upgrades.
Config.Interaction‘target’target or drawtext.
Config.ReturnTruckToPorttrueRequire returning the truck to the port to finish.
Config.TrailerHookDistance7.5Distance to attach a trailer.

⚙️ Admin, job ped and blip

Config.Admin = { addXpCommand = 'truckingaddxp', resetStatsCommand = 'truckingresetstats', acePermission = 'orioncore.admin', groups = { admin = true, god = true, owner = true } } Config.UsePed = true Config.JobPed = { model = 's_m_m_trucker_01', coords = vector4(805.95, -3184.19, 5.96, 169.12), scenario = 'WORLD_HUMAN_CLIPBOARD' } Config.JobBlip = { enabled = true, sprite = 477, color = 5, scale = 0.85, shortRange = true }
OptionDefaultWhat it does
Config.Admin.acePermission‘orioncore.admin’ACE that grants admin commands.
Config.Admin.groupsadmin, god, ownerFramework groups allowed to use admin commands.
Config.JobPedtrucker at the portModel, coordinates and scenario of the job ped.

⚙️ Company and progression

Config.Company = { name = 'Nomad Trucking', createCost = 10000, minLevel = 4, maxMembers = 4, inviteDistance = 12.0, multiplayerBonus = 0.10 } Config.Progression = { baseLevel = 1, levels = { [1] = 0, [2] = 1000, [3] = 2500, ... [18] = 129000 }, reputationNames = { [1] = 'New Driver', [3] = 'Reliable Hauler', ... [18] = 'Logistics Legend' } }
OptionDefaultWhat it does
Company.createCost10000Price to create a company.
Company.minLevel4Level required to create one.
Company.maxMembers4Members per company.
Company.multiplayerBonus0.10Pay bonus for multiplayer routes.
Progression.levels18 levelsXP needed for each level (level 2 at 1000, level 18 at 129000).
Config.Achievements7 entriesStat based achievements: routesCompleted, totalEarned or level.

⚙️ Trucks, upgrades and haul types

Config.Trucks = { { id = 'phantom', label = 'Phantom Day Cab', model = `phantom`, class = 'starter', price = 0, requiredLevel = 1, profitBonus = 0.0, defaultOwned = true }, { id = 'packer', class = 'regional', price = 18000, requiredLevel = 5, profitBonus = 0.10 }, { id = 'hauler', class = 'longhaul', price = 42000, requiredLevel = 10, profitBonus = 0.15 }, { id = 'phantom3', class = 'elite', price = 75000, requiredLevel = 15, profitBonus = 0.20 } }
OptionDefaultWhat it does
Config.Trucks4 trucksphantom (free), packer 18000, hauler 42000, phantom3 75000.
Config.CargoUpgrades4 upgradesstandard (free), secured loads +3%, priority freight +6%, specialized cargo +9%.
Config.HaulTypes9 typesEach has payMultiplier and xpMultiplier (general 1.0 up to military 1.20 pay).
Config.TruckClassRankstarter 1 to elite 4Used to gate routes by truck class.

⚙️ Routes

Config.Routes is a list. Each route has an id, label, type (Solo or Multiplayer), difficulty, pay, xp, requiredLevel, requiredTruckClass, cargo, allowed haulTypes, a pickup group, a dropoff and optional variants. Special loading types (vehicle_carrier and forklift_pallets) add a loading table.

{ id = 'short_docks', label = 'Port Supply Run', type = 'Solo', difficulty = 'Easy', pay = 2500, xp = 350, requiredLevel = 1, requiredTruckClass = 'starter', cargo = 'Retail Goods', haulTypes = { 'general', 'fragile', 'refrigerated' }, pickupGroup = 'docks', dropoff = vector3(953.31, -2187.43, 30.55), variants = { { id = 'short_docks_la_mesa', dropoff = vector3(-1087.26, -480.44, 36.69) } } }
OptionDefaultWhat it does
short_docksSolo, EasyPay 2500, level 1.
sandy_freightSolo, MediumPay 5600, level 5, regional truck.
paleto_longhaulMultiplayer, HardPay 11200, level 10, longhaul truck.
vehicle_haulerSolo, MediumPay 8500, level 8, car carrier loading.
flatbed_palletsSolo, MediumPay 7600, level 6, forklift pallet loading.
Last updated on