Maintenance & Wear
π Config file: shared/maintenance.lua
This file controls how quickly each vehicle part wears out and the gameplay effects of worn parts. Every part has a wear distance (how far the vehicle must drive before the part needs attention) and various settings that determine what happens when the part is degraded.
Wear values go from 0 (brand new) to 100 (completely broken). When a part reaches 100, it stops functioning properly and may cause serious issues like engine stalling or tire blowouts.
Spark Plugs
Config.SparkPlugChangeDistance = 1
Config.MaxSparkPlugWear = 100.0SparkPlugChangeDistance
Distance (in km/miles) before spark plugs need changing. Lower values mean more frequent maintenance.
MaxSparkPlugWear
Maximum wear value. When reached, the spark plugs are completely worn out and cause misfires.
Engine Oil & Oil Filter
Config.OilChangeDistance = 1
Config.OilFilterDistance = 2000
Config.EngineDamageRate = 0.5OilChangeDistance
Distance before oil needs changing.
OilFilterDistance
Distance before the oil filter needs replacing.
EngineDamageRate
How much engine health damage accumulates per tick when oil is severely degraded. Higher = more punishing.
Air Filter
AirFilterDistance
Distance before the air filter needs replacing.
MaxSpeedReduction
Maximum top speed penalty when the air filter is fully clogged. 0.2 = up to 20% speed loss.
AccelerationReduction
Maximum acceleration penalty when the air filter is fully clogged. 0.3 = up to 30% slower acceleration.
Tires
TireWearDistance
Distance before tires need replacing.
BaseTireGrip
Grip level of brand new tires. Higher = more traction.
MinTireGrip
Grip level of completely worn tires. The difference between Base and Min determines how much grip degrades.
TireBurstThreshold
Wear ratio (0β1) at which tires risk randomly blowing out. 0.98 means at 98% wear (only 2% life left).
TireBurstChance
Probability (0β1) per check that a tire actually bursts when above the threshold. 0.05 = 5% chance every 3 seconds.
SteeringReductionRatio
Maximum reduction in steering speed when tires are worn. 0.4 = up to 40% slower steering.
SteeringLockReductionRatio
Maximum reduction in turning radius when tires are worn. 0.3 = up to 30% wider turns.
Wheel Balancing
WheelBalanceDistance
Distance before wheel balancing is needed.
WheelBalanceResonanceMin
Speed (km/h) where vibration begins. Below this speed, unbalanced wheels feel normal.
WheelBalanceResonanceMax
Speed (km/h) where vibration reaches maximum intensity.
WheelBalanceVibration
Maximum camera shake intensity. Higher = more violent shaking.
WheelBalanceJitter
Maximum steering jitter (random small inputs). Higher = harder to control.
WheelBalanceImpactChance
Chance (0β1) of losing wheel balance after a high-speed collision.
WheelBalanceSusImpact
Multiplier for suspension wear when wheels are unbalanced. 1.5 = suspension wears 50% faster.
Brakes
BrakeWearRate
How fast brakes wear per use. Higher = faster degradation.
MaxBrakeWear
Maximum wear value (100 = completely worn).
BrakeEfficiencyLoss
Maximum braking power loss when fully worn. 1.0 = 100% loss (no brakes at all).
BaseBrakeForce
The baseline brake force of a vehicle with new brakes.
BrakeChangeDistance
Distance before brakes need attention.
Suspension
SuspensionChangeDistance
Distance before suspension needs servicing.
MaxSuspensionWear
Maximum wear value. Worn suspension causes harsh ride quality and handling issues.
Clutch
ClutchWearRate
How fast the clutch wears per gear change.
MaxClutchWear
Maximum wear value.
ClutchEfficiencyLoss
Maximum efficiency loss when fully worn. 0.8 = 80% power loss through a slipping clutch.
ClutchChangeDistance
Distance before the clutch needs replacing.
BaseClutchForce
Baseline clutch engagement force.
Pistons
PistonChangeDistance
Distance before pistons need servicing.
MaxPistonPowerLoss
Maximum power loss when pistons are fully worn. 0.4 = 40% less engine power.
PistonSmokeThreshold
Wear ratio (0β1) at which blue exhaust smoke starts appearing. 0.85 = at 85% wear.
PistonDynamicWearRate
Additional wear added when revving above 80% RPM. High-revving wears pistons faster.
Radiator
RadiatorChangeDistance
Distance before the radiator needs replacing.
RadiatorHeatMultiplier
How much faster the engine overheats when the radiator is worn. 2.5 = 150% faster heating.
RadiatorSteamThreshold
Wear ratio (0β1) at which steam starts coming from the hood. 0.90 = at 90% wear.
RadiatorDynamicWearRate
Additional wear when engine temperature exceeds 105Β°.
Fuel Pump
FuelPumpChangeDistance
Distance before the fuel pump needs replacing.
FuelPumpDynamicWearRate
Wear added periodically while driving.
A worn fuel pump causes intermittent fuel starvation β the engine will stutter and can randomly stall.
Alternator
AlternatorChangeDistance
Distance before the alternator needs replacing.
AlternatorFailChance
Chance (0β1) that the engine fails to start when the alternator is worn. 0.3 = 30% fail rate.
LightFlickerThreshold
Wear ratio (0β1) at which headlights start flickering. 0.75 = at 75% wear.
AlternatorDynamicWearRate
Wear added each time the player attempts to start the engine.
Gearbox
GearboxChangeDistance
Distance before the gearbox needs replacing.
GearboxWearRate
How fast the gearbox wears per gear shift or per mile.
GearboxFailShiftThreshold
Wear ratio (0β1) at which gear shifts start randomly failing. 0.8 = at 80% wear.
GearboxGrindChance
Probability (0β1) of gears grinding when shifting with a worn gearbox.
GearboxClutchWearImpact
Additional clutch wear caused by each shift when the gearbox is worn. Worn gearbox = worn clutch faster.
Turbo
TurboDynamicWearRate
Additional wear when boost is active (RPM above turbo's threshold).
TurboBaseWearRate
Baseline wear added periodically while driving with a turbo installed.
TurboPowerLossThreshold
Wear ratio (0β1) where boost output starts declining. 0.5 = loses power at 50% wear.
TurboBlowThreshold
Wear ratio (0β1) where the turbo can blow out entirely (black smoke, no boost). 0.95 = at 95% wear.
Global Wear Settings
WearTickInterval
How often (in milliseconds) the dynamic wear calculation runs. 5000 = every 5 seconds. Lower values are more accurate but use more CPU.
MaxPartCondition
The maximum wear value any part can reach. 100 means fully broken.
Last updated