RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

server/commands - Camera & Input Commandsge_utils - Game Engine Utility Functionsmain.lua - GE Lua Entry Point & Game Loopmap.lua - Navigation Graph (AI Road Map)screenshot.lua - Screenshot Systemserver/server - Level Loading & Game ServerserverConnection - Client-Server Connection Manager`setSpawnpoint` - Default Spawn Point Persistence`simTimeAuthority` - Simulation Time & Bullet Time Control`spawn` - Vehicle Spawning & Safe Placement`suspensionFrequencyTester` - Suspension Natural Frequency Analysis
Career BranchesCareer System CoreCareer Save System
Career Computer MenuCareer Fuel SystemInspect VehicleVehicle InventoryLinear TutorialLoaner VehiclesCareer LogLogbookMarketplaceMission WrapperCareer Painting ModuleCareer Part Inventory ModuleCareer Part Shopping ModuleCareer Payment ModuleCareer Permissions ModuleCareer Playbook Writer ModuleCareer Player Abstract ModuleCareer Player Attributes ModuleCareer Player Driving ModuleCareer Quick Travel ModuleCareer Rentals ModuleCareer Reputation ModuleCareer Spawn Points ModuleCareer Speed Traps ModuleCareer Test Drive ModuleCareer Tether ModuleCareer Tuning ModuleCareer UI Utils ModuleCareer Unlock Flags ModuleCareer Value Calculator ModuleVehicle Class GroupingVehicle Deletion ServiceVehicle PerformanceVehicle Shopping
Insurance HistoryInsurance SystemRepair Screen

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionscareermodulesinsurance

Repair Screen

M.dependencies = {'career_modules_valueCalculator', 'career_modules_inventory', 'career_modules_playerAttributes', 'career_modules_payment', 'career_modules_insurance_insurance'}

Dependencies

M.dependencies = {'career_modules_valueCalculator', 'career_modules_inventory', 'career_modules_playerAttributes', 'career_modules_payment', 'career_modules_insurance_insurance'}

Prepares repair screen data for the UI. Separates data formatting from the main insurance module, building structured repair options for both insured and uninsured repair paths.


Public API

FunctionSignatureDescription
M.getRepairData() → tableBuilds complete repair screen data with options, costs, and vehicle info
M.openRepairMenu(vehicle, originComputerId)Opens the repair UI state for a vehicle
M.closeRepairMenu()Returns to computer menu or closes all menus
M.closeMenu()Alias for closeRepairMenu
M.startRepairInGarage(invVehId, repairOptionData)Closes menu and delegates to insurance.startRepairInGarage

Hook Handlers

HookPurpose
M.onComputerAddFunctionsAdds "Repair" button per vehicle in garage computer

Repair Data Structure

{
  repairOptions = {
    noInsuranceRepairData = {
      repairTimeOptions = {  -- 4 choices: Instant/2min/5min/10min
        choices = {{id=1, value=0, premiumInfluence=500, choiceText="Instant"}, ...}
      },
      useInsurance = false,
    },
    insuranceRepairData = {  -- nil if uninsured
      repairTimeOptions = {},  -- from coverage option
      useInsurance = true,
      renewsIn = 85,
      insuranceName = "SafeDrive",
      currentPremium = 1200,
      futurePremium = 1350,  -- premium after this claim
      deductible = 250,
      accidentForgivenesses = 2,
    },
  },
  vehicleData = {
    damageCost = 1500,
    name = "Covet DXi",
    invVehId = 3,
    isInsured = true,
    needsRepair = true,
  },
  driverScore = 64,
  futureDriverScore = 63,  -- score after this claim
}

No-Insurance Repair Time Options

ChoiceWait TimeExtra Cost
Instant0s$500 + damage
2 min120s$350 + damage
5 min300s$150 + damage
10 min600s$50 + damage

See Also

  • insurance - Core insurance logic and repair execution
  • inventory - Vehicle data source

Insurance System

M.dependencies = {'career_career', 'career_modules_payment', 'career_modules_playerAttributes', 'career_modules_insurance_history'}

General Milestones

M.dependencies = {"career_modules_milestones_milestones"}

On this page

DependenciesPublic APIHook HandlersRepair Data StructureNo-Insurance Repair Time OptionsSee Also