Skip to content

Configuration

Every block of shared/config.lua and data/stations.lua in Cuxial Gas Stations, with defaults and common changes.

shared/config.lua and data/stations.lua are the factory values. Almost everything on this page can also be changed live from the admin panel, without touching files or restarting. If you edit the files, restart the resource.

What is saved in the panel wins over these files: live settings, per-station rules and the station editor. If a change in the file has no effect, that section or that station is customised in the panel; Reset returns it to the file. See Admin panel.

Money values are in whole currency units unless a row says otherwise. Distances are in metres.

General ​

OptionTypeDefaultWhat it does
debugbooleanfalseDebug traces in the console. Also enabled with setr cuxial_gasstations_debug 1.
ui.accentstringconfigurableAccent colour of the interface, as a hex code.
ui.currency.symbolstring'$'Currency symbol shown in the interface.
ui.currency.localestring'es-ES'Number format of amounts, as 1.000,50. Use 'en-US' for 1,000.50.
ui.mission.cornerstring'top-right'Corner of the mission overlay: 'top-right', 'top-left', 'bottom-right' or 'bottom-left'.
ui.mission.toggleKeystring'F7'Default key that collapses the mission overlay.
logs.convarstring'cuxial_gasstations_webhook'Name of the convar that holds the Discord webhook.
limits.stationsPerPlayernumber1Stations a player can own.
limits.stationsEmployednumber2Stations a player can work at as an employee at the same time.
limits.jobsnumber20Delivery jobs a station can have posted at once.
admin.permissionstring'admin'cuxial_bridge permission the admin panel requires on every action.
commands.admintablename = 'gasadmin', restricted = 'group.admin'Admin panel command and the ACE group allowed to run it.
commands.filltablename = 'gas_fill', restricted = trueLoading point tool. true requires the command.gas_fill ACE.
commands.missiontablename = 'gas_mission'Command behind the key that collapses the mission overlay.
commands.washJettablename = 'washjet'Water jet tuning tool, only with debug on.
fuelsEnabledbooleantruefalse: stations only handle regular; the other fuels and the chargers disappear.
renameEnabledbooleantrueLets the owner change the name, colour and icon of the blip.
groupBlipsbooleantrueGroups the station blips into one category on the map.
routeBliptable{ sprite = 478, color = 5 }Blip of the run route.
plate.prefixstring'GS'Plate of run vehicles: prefix plus 6 digits.
blipColorsnumber[]16 coloursBlip colours the owner can choose from.
blipSpritesnumber[]13 iconsBlip icons the owner can choose from.
ledger.flushSeconds / flushAmountnumber60 / 5000Wash income is written to the cash history in batches: every N seconds or when the pending amount passes this value.

Abandonment ​

OptionTypeDefaultWhat it does
abandon.enabledbooleantrueStations with low stock are taken from their owner.
abandon.minStockPctnumber30Minimum total stock, as a percentage of the capacity.
abandon.hoursnumber72Hours in a row below the minimum before the station is lost.

Roles ​

roles.actions sets the minimum role for each action and roles.pages for each panel page. Roles go from 1 (basic) to 3 (full); 4 means owner only.

ActionDefaultAllows
contractImport, contractExport1Start import and export contracts.
loadBalance1Read the cash history.
fleetUse1Take a detailing van out.
spillClean1Clean a fuel spill.
createJob, deleteJob2Post and delete delivery jobs.
applyPrice2Change pump prices.
unlockElectric2Pay to unlock the electric chargers.
buyUpgrade2Buy upgrades.
toggleBalance2Hide or show entries of the cash history.
washConfig, washJobs2Set wash services and post wash jobs.
npcConfig, mobileConfig2Turn NPC customers and mobile detailing on or off.
rename3Rename the station and change its blip.
deposit, withdraw3Move money in and out of the cash box.
hire, fire, changeRole, commission3Manage staff and pay manual commissions.
fleet3Buy and sell fleet vehicles.
rentalConfig, promos, commissionConfig3Rental settings, promotions and automatic commissions.
notices3Receive the station notices.
sell, noticeConfig4Sell the station; change the notice settings.

Default pages: summary and contracts at 1; goods, fleet, jobs, wash and upgrades at 2; employees, promos and bank at 3.

Fuels and station types ​

fuels.petrol and fuels.electric list the fuel ids. types holds one entry per kind of station; the default is small, and each station in data/stations.lua points to one with type.

OptionTypeDefaultWhat it does
maxEmployeesnumber5Staff limit.
stockCapacitynumber1000Base litres per fuel.
priceLimitstableper fuel{ min, max } price per litre or kWh the owner can set.
electricUnlocktable3000 / 9000One-off payment from the cash box to turn on the normal and fast chargers.
upgrades.<id>.pricenumberper upgradePrice of each level. Add prices = { ... } for a different price per level.
upgrades.<id>.levelsnumber[]per upgradeValue of each level, from 0 to 5.
deliveryman.maxLitersnumber100Litre cap of a delivery job.
deliveryman.pricePerLiternumber35Fuel cost per litre added to the reward when posting a job.
deliveryman.goodsPricetablesoap = 8, water = 0.4Cost per litre in a delivery job for soap or water.
tierstable[]3 sizesContracts offered to the owner. See below.
bliptable{ sprite = 361, color = 41, scale = 0.6 }Blip of a station that has not been customised.

Upgrades:

IdDefault priceWhat each level gives
stock20000Extra litres per fuel: 0, 250, 500, 1000, 1500, 2000.
truck45000Garage: fleet slots, from 1 to 6.
relationship60000Discount (%) on imports and on the cost of jobs: 0 to 40.
washer35000Active pressure washers: 0 to 4.
detailing500001 detailing van, 2 rental, 3 mobile detailing.

Each entry of tiers:

FieldWhat it does
nameSize shown in the panel: small, medium or large.
maxLitersLitre cap of the run. The real amount is the capacity of the chosen vehicle, up to this cap.
minCapacityMinimum vehicle capacity needed to pick this contract.
maxDistanceMaximum distance of the destination, in km, there and back.
importPriceCost per litre of each fuel, soap and water.
exportPriceEarnings per litre exported.
imgImage of the card in the panel.

Fleet ​

OptionTypeDefaultWhat it does
fleet.sellFactornumber0.5Fraction of the price returned when a vehicle is sold.
fleet.starterstring'van'Catalog id given for free with the station.
fleet.jobVehiclestring'box'Catalog id used by delivery jobs. It does not take a fleet slot.
fleet.catalogtable[]6 vehiclesVehicles the station can buy.

Each catalog entry has id, label, model, capacity (litres per run), speed (1 to 5, shown in the panel only) and price. Optional fields: trailer (trailer model), requires = { garage, relationship, detailing } (minimum upgrade levels), kind = 'detail' (detailing van, not valid for contracts) and usesSlot.

If your server runs a model blacklist, check that no catalog model is on it. A blacklisted vehicle is deleted as soon as it appears and the run fails.

Loading and unloading ​

Block loading: the hose-and-bay sequence of contracts and deliveries.

OptionTypeDefaultWhat it does
litersPerSecondnumber10Transfer speed.
bayRadius / bayHeadingnumber1.5 / 15.0Tolerance, in metres and degrees, to count the vehicle as lined up.
ropeLengthnumber12.0Reach of the hose.
ropebooleantrueDraws the hose as a rope.
nozzlestring'prop_cs_fuel_nozle'Nozzle model.
fillPointstabletankerWhere the hose connects on each vehicle model. Without an entry, the centre of the rear. Tune one with /gas_fill.
propstable[]5 propsProps that can be chosen for a loading point in the editor.
explosiontableenabledExplosion when the vehicle is moved with the hose connected. enabled = false turns it off.
propDistancenumber120.0Distance at which the prop of a point appears.
missionPropsOnlybooleantruetrue: loading props are only visible to the player doing the run. false: visible to everyone nearby.
duplicateRadiusnumber75.0Radius used in the admin panel to flag locations that are too close to each other.

Modules ​

modules switches whole features. false removes the interactions, loops and callbacks of that feature.

ModuleFeature
washEverything related to pressure washing.
stationWashWash slots at stations.
vanDetailing vans.
rentalVan rental.
jobsMenuThe jobs menu at the jobs point.
washJobsWash jobs posted by the owner.
goodsSoap and water stock.
servicesWash services with a price (rinse, foam, wax).
waxWax stage and its effect.
commissionsAutomatic commissions.
promosPromotions.
npcNPC customers.
mobileMobile detailing.
reputationRatings and reputation.
noticesOwner notices.
liveryLivery of the detailing van.
spillFuel spills.
hoseAudioSounds of the loading hose.

All are true by default.

Pressure washing ​

Block wash. The most used groups are below; the rest are fine-tuning values, each with a comment in the file.

Public washers ​

OptionTypeDefaultWhat it does
public.enabledbooleantruefalse: public washers do not appear.
public.unlistedstring'deny'A washer prop of the map that is neither public nor a station slot: 'deny' cannot be used, 'selfservice' works as a public self-service washer.
public.matchRadiusnumber3.0Distance to match a map prop with a public washer.
public.pricenumber10Price to take the gun in self-service mode.
public.jobsstring[]'washer', 'washer2'Jobs allowed to use washers in job mode. Replace them with yours.
public.jobRewardnumber150Pay per clean vehicle in job mode. 0 = no pay.

Station slots ​

OptionTypeDefaultWhat it does
stations.maxSlotsnumber6Wash slots an admin can place per station.
stations.editRadiusnumber120.0Maximum distance from the station office to a bay.
stations.propRadiusnumber20.0Maximum distance between the bay and its washer.
stations.hosesPerSlotnumber1Hoses in use at once per slot.
stations.quoteRadiusnumber5.0Distance to the washer to see the prices.

Money ​

OptionTypeDefaultWhat it does
economy.accountstring'cash'Account charged for the wash and the fee.
economy.fallbackAccountstring'bank'Used when the first account is short.
economy.breakFeenumber50Fee for breaking the hose. At a station it goes to its cash box.
economy.rewardAccountstring'bank'Account that receives wash pay.
economy.rewardCooldownnumber12Seconds between two payments to the same player.
economy.vehicleCooldownnumber600Seconds before the same vehicle pays again.
economy.repickWindownumber120Seconds in which taking the gun again at the same washer is free.
reward.minDirtnumber2.0Minimum starting dirt (0 to 15) for a wash to pay.
reward.maxDirtnumber0.5Maximum dirt left for the wash to count as done.

The other reward values are server-side tolerances against cheating and sync delays.

Wash process ​

OptionTypeDefaultWhat it does
cleaning.soapPortion / scrubPortion / waterPortionnumber0.5 / 0.25 / 0.25Share of the dirt removed by each stage.
cleaning.stageSecondstablefoam = 18, rinse = 14Seconds of effective spraying to complete each stage.
cleaning.scrubTimenumber10Seconds of scrubbing with the sponge.
cleaning.sourceRadiusnumber10.0Maximum distance between the washer, the vehicle and the player.
jet.maxDistance / coneDegnumber6.0 / 25Reach and width of the jet that counts as hitting the car.
jobs.timeoutnumber900Maximum seconds of a wash.
jobs.idlenumber300Seconds with no progress before the wash is cancelled.
jobs.leaveRadius / leaveSecondsnumber30.0 / 15Walking this far from the washer for this long cancels the wash.
keys.switchMode / dropGunstring'G' / 'E'Default keys: switch water and soap; drop the gun after the hose breaks.
keys.switchAnywherebooleanfalsetrue: the mode can be switched anywhere, not only within keys.switchRange of the washer.
offers.acceptKey / declineKeystring'Y' / 'X'Default keys of the offer card.
hose.maxLengthnumber17.0Distance from the washer at which the hose breaks.
hose.explodebooleantrueWater burst when the hose of a washer breaks.
physics.enabledbooleantrueThe water jet pushes peds, loose objects and empty vehicles.
physics.pushPlayersbooleantrueThe jet also knocks players down.
spray.jetStylestring'legacy'Look of the water jet: 'legacy' (steam) or 'cannon' (water cannon).
engineSound.enabledbooleantrueEngine loop on each washer in use.
ui.sprayModetableleft, centrePosition and size of the water / soap badge.

Washer prop and van ​

OptionTypeDefaultWhat it does
pump.modelstring'cuxial_pressure_washer'Washer prop.
pump.spawnDistancenumber120.0Distance at which a washer appears.
van.enabledbooleantrueWashing from the detailing van.
van.modestring'selfservice'Mode of vans that wash in public mode: 'selfservice' (the player pays) or 'job' (listed jobs only, paid per car).
van.price / reward / breakFeenumbernilOverrides for vans. nil uses the public washer values.
van.requiredDoorsnumber[]{ 2, 3 }Doors that must be open to take the gun. {} = none.
van.modelstable[]detailing vanVan models and the point where the hose comes out.
van.defaultLiverynumber1Livery applied to a van with none. false = none.
commands.liverytablewasherlivery, group.adminLivery command and who can use it.
debugCommandtablewashdebug, enabled = falseJet diagnostics command, for admins. enabled = true registers it without debug mode; name = false removes it.

Goods and supply ​

OptionTypeDefaultWhat it does
goods.soaptablecapacity = 200, lowPct = 15Soap tank in litres and low-stock percentage.
goods.watertablecapacity = 5000, lowPct = 15Water tank and low-stock percentage.
supply.water.mainsbooleantruetrue: water refills on its own and the station pays per litre. false: water comes by contracts and deliveries.
supply.water.litersPerMinutenumber10Refill speed.
supply.water.pricePerLiternumber0.1Cost of mains water.
supply.soap.drumsbooleantruetrue: soap is unloaded in drums carried by hand. false: with the hose, like fuel.
supply.soap.drumLitersnumber25Litres per drum.
supply.soap.perVehicletableper modelDrums each vehicle model can carry. 0 = cannot carry soap. Other models use defaultPerVehicle (6).

Services and wax ​

Each entry of services (rinse, foam, wax):

FieldWhat it does
enabledOffers the service.
priceDefault price. Defaults: 20, 45 and 90.
limits{ min, max } the owner can set.
soap, waterLitres used each time the gun is taken.
portionsShare of dirt per stage for this service. Without it, the wash.cleaning values apply.
waxtrue: adds the wax stage.
OptionTypeDefaultWhat it does
wax.durationnumber7200Seconds the wax lasts.
wax.factornumber0.25Fraction of new dirt that sticks while waxed.
wax.timenumber8Seconds to apply it.
wax.persistbooleanfalsetrue: the wax is stored by plate and survives storing the vehicle.

Commissions and promotions ​

OptionTypeDefaultWhat it does
commissions.washtabledefault = 15, max = 50Percentage for the employee who washes an NPC customer's car, and the cap the owner can set.
commissions.mobiletabledefault = 25, max = 50Same for mobile detailing.
commissions.perEmployeebooleantrueLets the owner set a percentage per employee.
promos.maxPerStationnumber5Promotions a station can have at once.
promos.happyHourtableminPct = 5, maxPct = 50Range of the happy hour discount.
promos.voucher.literstable{ 20, 100 }Range of minimum litres for a free wash. Default defaultLiters = 40.
promos.voucher.validMinutestable{ 10, 120 }Range of minutes the voucher is valid.
promos.voucher.servicesstring[]rinse, foamServices a voucher can give.

Vans, rental and shifts ​

OptionTypeDefaultWhat it does
van.platePrefixstring'GW'Plate of detailing vans: prefix plus 6 digits.
van.returnRadiusnumber25.0Distance to the lot to return a van.
van.stationRadiusnumber60.0Distance to the station to take out or rent a van.
van.perPlayernumber1Vans a player can have out for own use.
van.offlineMinutesnumber5An own-use van is removed if its holder stays offline this long.
van.unregisteredstring'legacy'A detailing van that does not belong to a station: 'legacy' washes in public mode, 'deny' cannot wash.
van.tanktablesoap = 15, water = 400Litres loaded from the station stock when the van leaves.
rental.accountsstring[]cash, bankAccounts the renter can pay with.
rental.pricePerHourtable400 (150 to 1500)Default and range the owner can set.
rental.deposittable3000 (1000 to 10000)Default and range of the deposit.
rental.maxHourstable4 (1 to 12)Default and range of the maximum rental time.
rental.graceMinutesnumber10Minutes after the end with no late fee.
rental.overtimeFactornumber1.5Late fee per hour = hourly price × this factor.
rental.forfeitAfterHoursnumber3Hours late after which the deposit is lost and the van removed.
rental.damagetablebody = 1.5, engine = 1.0Weight of damage charges, as a fraction of the deposit.
washJobstablesee fileLimits of wash jobs: max posted at once, and { min, max } for reward, count and name length.
jobsMenu.radiusnumber25.0Distance to the jobs point to use its menu.
shift.leaveRadius / leaveMinutesnumber150.0 / 10The shift closes after this many minutes farther than this from the station.

NPC customers ​

NPC customers pay with new money, so the caps are conservative.

OptionTypeDefaultWhat it does
npc.enabledbooleantrueTurns the feature on.
npc.tickSeconds / baseChancenumber30 / 0.25How often each station rolls for a customer and the base chance.
npc.maxActivePerStationnumber1Customers at once per station (0 to 2).
npc.hourlyCap / hourlyMoneynumber6 / 600Customers and money created per station per hour.
npc.dailyCap / dailyMoneynumber30 / 3000Same per day.
npc.maxGlobal / globalHourlyCap / globalDailyMoneynumber6 / 30 / 20000Server-wide caps.
npc.presenceRadiusnumber80.0An on-shift employee must be this close to the bay.
npc.models, npc.pedsstring[]listsCars and drivers used.
npc.dirttable{ 8.0, 15.0 }Dirt of the car on arrival.
npc.servicestableweightsChance of each service being asked for.
npc.priceFactornumber1.0Multiplier on the owner's price.
npc.timeoutstablesecondsTime allowed to arrive, wait, be washed and leave.
npc.tiptablemaxPct = 30Maximum tip and the times that give 100 % and 0 % of it.

Mobile detailing ​

OptionTypeDefaultWhat it does
mobile.enabledbooleantrueTurns the feature on.
mobile.levelnumber3Detailing upgrade level required.
mobile.commandstring | false'detailing'Request command. false = no command.
mobile.multipliernumber1.6Multiplier on the service price.
mobile.feePerKm / maxKmnumber40 / 6.0Travel fee and maximum distance from the station.
mobile.requestTtlnumber300Seconds a request waits for an employee.
mobile.arriveTimeout / washTimeoutnumber600 / 600Seconds to arrive and to finish the wash.
mobile.cancelFeePctnumber25Percentage kept when the customer cancels after it was accepted.
mobile.cooldownnumber600Seconds between requests from the same player.
mobile.maxOpenPerStationnumber3Requests in progress per station.
mobile.servicesstring[]all threeServices that can be requested.
mobile.accountstring'bank'Account the customer is charged from.
mobile.phone.companystring'cuxial_detailing'Id of the company in your phone resource. A message to that company opens the request menu.
mobile.phone.number / namestring'5550420' / 'Detailing a domicilio'Sender of the messages the customer receives.
mobile.phone.keywordstableper serviceWords in the message that pick a service directly.

For requests by phone, add a company to your phone's service list with the same id as mobile.phone.company. Set mobile.phone = false to leave the phone out.

Reputation ​

OptionTypeDefaultWhat it does
reputation.prior / weightnumber3.0 / 10Starting rating and how much it weighs against real ratings.
reputation.windowDays / halfLifeDaysnumber30 / 10Ratings older than the window are ignored; a rating loses half its weight every half-life.
reputation.npcFactortable{ 0.5, 1.5 }Multiplier on NPC customer chance at 1 and at 5 stars.
reputation.supplierBonustablefrom = 3.5, max = 3Extra supplier discount (%) from that rating, perHalfStar per half star.
reputation.oncePerHoursnumber24One rating that counts per player and station in this time.
reputation.promptCooldownMinutes / promptSecondsnumber30 / 15Time before asking the same player again; seconds the rating card stays.
reputation.fuelDelaySecondsnumber60Delay of the card after refuelling.
reputation.weightstableper sourceWeight of each source: wash, mobile, fuel, rental, npc, stockout, missed, spill.
reputation.prompttableall trueWhich services ask the player for a rating.
reputation.adjustMaxnumber20Maximum manual adjustment by an admin, in tenths of a star.

Notices ​

OptionTypeDefaultWhat it does
notices.phonebooleantrueSends notices to the phone when one is available. false: always the standard notification.
notices.maxPerHournumber12Notices per station per hour.
notices.retentionDaysnumber14Days a notice is kept.
notices.offlineMax / loginShow / loginDelaynumber30 / 3 / 15Notices stored for an offline player; how many are shown on login and after how many seconds.
notices.lowStocktable20 / 15 / 15Default low-stock percentages for fuel, soap and water, and the check schedule (cron).
notices.dailytable'0 9 * * *'Schedule of the daily summary. discord = true also sends it to the logs webhook.
notices.webhook.enabledbooleantrueLets owners set a Discord webhook for their station.
notices.types.<kind>tableall enabledSwitch and cooldown in minutes for each kind of notice.
notices.providersstring[]{}Names of notice providers that must exist. A missing one prints a console warning.

Spills ​

OptionTypeDefaultWhat it does
spill.litersnumber10Litres the station loses per spill.
spill.radiustable{ 1.5, 3.0 }Size of the puddle according to the litres.
spill.lifetimeMinutesnumber4Time before a puddle dries on its own.
spill.burnSecondsnumber25Time it burns once lit.
spill.maxPerStation / maxGlobalnumber1 / 6Puddles at once.
spill.playerCooldown / vehicleCooldownnumber300 / 300Seconds before the same player or vehicle can cause another.
spill.ignite.bulletChance / engineChancenumber35 / 5Chance (%) that a gunshot or starting an engine on the puddle lights it. Explosions and fire always do.
spill.firetabledamage = 5Number of flames and damage per second to anyone standing in it.
spill.reputationStarsnumber2Rating the spill counts as.
spill.spreadToPumpbooleanfalsefalse: the fire never reaches the pumps. true: pump.chance % that it does.
spill.cleantableseconds = 8, water = 20Cleaning time and litres of station water used. enabled = false removes the option.

Stations ​

data/stations.lua lists every station. The delivered file covers the default map. The easiest way to change prices, names and positions, create stations or disable them is the panel editor, which stores only the changed fields without touching the file. label is a key in locales/*.json; plain text works too.

FieldTypeWhat it does
labelstringDefault name on the blip and in the panel.
buyPricenumberPurchase price.
sellPricenumberPaid to the owner on selling, plus the cash box.
typestringKey of types in the config.
accountstringPlayer account used for the station's money: 'bank' or 'cash'.
coordsvec3Office point, where the panel opens.
blipvec3Blip position. Omit it for no blip.
truckvec4Where the run vehicle appears and is returned.
trailervec4Where the trailer appears.
vanvec4Where detailing vans appear and are returned. Optional; truck is used without it.
jobsvec3Jobs point.
pumpsvec4Sphere that covers the pumps: centre and radius. A pump inside it belongs to this station.

Never rename the key of a station that already has an owner (gas_station_1...). The key is its id in the database.

Common changes ​

Two stations per player and a shorter abandon rule

shared/config.lua
lua
limits = { stationsPerPlayer = 2, stationsEmployed = 2, jobs = 20 },
abandon = { enabled = true, minStockPct = 20, hours = 48 },

Turn off NPC customers and spills

shared/config.lua
lua
modules = {
    -- ...
    npc = false,
    spill = false,
},

Add a vehicle to the fleet

shared/config.lua
lua
{ id = 'box_m', label = 'Medium truck', model = 'benson', capacity = 160, speed = 3, price = 60000 },

Add the line inside fleet.catalog, and its model to supply.soap.perVehicle if it should carry a different number of soap drums.

Dollar format in the interface

shared/config.lua
lua
ui = {
    accent = '#4f9cf9',
    currency = { symbol = '$', locale = 'en-US' },
    mission = { corner = 'top-right', toggleKey = 'F7' },
},

© Cuxial