For the complete documentation index, see llms.txt. This page is also available as Markdown.

configuration

All settings are in config.lua.

General

Config.TestMode = false          -- Show 3D debug rays and speed text
Config.EnableCommands = true     -- Enable /fixVehicle and /fv
Config.EnableCompatible = true   -- Mechanic script compatibility bridge
Config.OldVersion = false        -- Legacy wheel damage (NOT recommended)

Crash damage

Config.Damage = 100.0                    -- Body damage per impact tick
Config.DamageTime = 1                    -- Number of damage ticks
Config.DamageRadius = 15.1               -- Visual damage radius
Config.DetectionTimeForNextCrash = 1000  -- Cooldown between crashes (ms)
Config.EnableMinCrashSpeed = true
Config.MinCrashSpeed = 5.0               -- Minimum speed for damage (m/s)

Damage levels

Config.DamageLevels = {
    { min = 10.0, max = 20.0 },   -- Tire burst
    { min = 21.0, max = 300.0 },  -- Wheel breakage
}

Hit ignore

Skip damage when the raycast hits certain entity types:

Post-crash behavior

Vehicle ignore list

Exclude certain vehicles or classes from damage:

Part damage

Toolbox

Wheel repair props

Wheel spawn models (on crash)

Land restriction

Surface materials and vehicle classes are defined in Config.SurfaceMaterials and Config.VehicleClasses. Per-class settings are stored in landData.json (auto-generated on first start).

Customize handling per surface in Config.HandlingSets:

  • slippery, soft, rough, reset, normal

For fully custom logic, edit Config.CustomHandlingThread(vehicle).

Damage indicators

Raycast points that detect crash impact zones:

Add new indicators to create additional damage zones.

Language

Customize notification messages:

UI button labels

Each repair workflow has configurable on-screen button hints:

  • Config.Toolbox_ui_buttons

  • Config.TireItem_ui_buttons

  • Config.TireRepair_ui_buttons

  • Config.EngineRepairKit_ui_buttons

  • Config.Radiator_ui_buttons

  • Config.RepairRadiator_ui_buttons

Target options

Vehicle and toolbox target menus are fully configurable:

  • Config.ToolboxTargetOptions — Hood, trunk, engine, radiator, fuel tank

  • Config.ToolboxTireOptions — Toolbox tool selection