RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager
Drag Race Editor ConstantsDrag Race Editor - Drag SettingsDrag Race Editor - FacilitiesDrag Race Editor - LanesDrag Race Editor - StateDrag Race Editor - StripsDrag Race Editor - UtilsDrag Race Editor - Waypoints

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 ExtensionseditordragRaceEditor

Drag Race Editor - Drag Settings

Manages drag race settings files (`.dragSettings.json`). Handles loading/saving, UI rendering for settings details, phases, prefabs, and validation.

Manages drag race settings files (.dragSettings.json). Handles loading/saving, UI rendering for settings details, phases, prefabs, and validation.


Public API

FunctionSignatureDescription
M.loadAllSettings()Scans level and mission directories for settings files
M.getAllSettings()→ tableReturns all discovered settings files
M.getSelectedSettingsIndex()→ numberCurrent selection index
M.setSelectedSettingsIndex(idx)Set selection index
M.getSelectedSettings()→ table/nilReturns selected settings file info
M.selectSettings(idx)Select and load a settings file
M.getDragSettings()→ tableReturns current in-memory settings
M.setDragSettings(settings)Replace current settings
M.loadDragSettings(filePath)→ boolLoad settings from JSON file
M.saveDragSettings(filePath)→ boolSave settings to JSON (with validation)
M.validateDragSettings(settings)→ bool, stringValidates required fields
M.drawSettingsList()Renders settings file list with Add/Remove/Save/Refresh
M.drawSettingsDetails()Renders full settings inspector
M.drawDragSettingsSection()Compact settings section (reset, teleport, context, type, IDs)
M.drawPrefabsSection()Prefab toggles with file loading
M.drawPhasesSection()Phase list with add/remove/reorder

Settings Structure

{
  canBeReseted = true,
  canBeTeleported = true,
  context = "activity",       -- "freeroam" | "activity"
  dragType = "headsUpRace",   -- "headsUpRace" | "bracketRace" | "dragPracticeRace"
  facilityId = "",
  stripId = "",
  phases = {
    { name = "stage", dependency = true, startedOffset = 0 },
    { name = "countdown", dependency = false, startedOffset = 0 },
    ...
  },
  prefabs = {
    christmasTree = { isUsed = false, treeType = ".500", prefabPath = "" },
    displaySign = { isUsed = false, prefabPath = "" },
    paths = { isUsed = false, prefabPath = "" },
    decorations = { isUsed = false, prefabPath = "" }
  }
}

File Discovery

Scans these locations for .dragSettings.json:

  • /levels/<level>/dragstrips/
  • /gameplay/missions/<level>/dragStripRace/
  • /gameplay/missions/<level>/dragStripAPM/

Tries multiple level name formats (original, lowercase, underscored).


Notes

  • Validation requires dragType, facilityId, and stripId to be non-empty
  • Settings selection clears facility and strip selections
  • Uses state.getSearch() for searchable combo boxes

See Also

  • Drag Race Editor Constants - Related reference
  • Drag Race Editor - Facilities - Related reference
  • Drag Race Editor - Lanes - Related reference
  • World Editor Guide - Guide

Drag Race Editor Constants

Centralized constants for the Drag Race Editor. Defines window settings, drag race types, phase names, tree types, context types, default transforms, UI dimensions, and debug colors.

Drag Race Editor - Facilities

Manages drag racing facilities (venues containing strips). Provides CRUD operations, ImGui list/detail rendering, and 3D preview drawing.

On this page

Public APISettings StructureFile DiscoveryNotesSee Also