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 - State

Centralized state management module for the Drag Race Editor. Provides getters/setters for all editor state including selections, undo/redo stacks, file paths, transforms, and error handling.

Centralized state management module for the Drag Race Editor. Provides getters/setters for all editor state including selections, undo/redo stacks, file paths, transforms, and error handling.


Public API

FunctionReturnsDescription
M.getState()tableReturns the full state table
M.setState(newState)Replaces the entire state
M.getDragRaceData()table/nilCurrent drag race data
M.setDragRaceData(data)Set drag race data
M.getSelectedLaneIndex()numberSelected lane (-1 = none)
M.setSelectedLaneIndex(idx)Set selected lane
M.getSelectedFacilityIndex()numberSelected facility (-1 = none)
M.setSelectedFacilityIndex(idx)Set selected facility
M.getSelectedStripIndex()numberSelected strip (-1 = none)
M.setSelectedStripIndex(idx)Set selected strip
M.getSelectedWaypointIndex()numberSelected waypoint (-1 = none)
M.setSelectedWaypointIndex(idx)Set selected waypoint
M.getMouseInfo()table/nilCurrent mouse info
M.setMouseInfo(info)Set mouse info
M.getHasUnsavedChanges()booleanDirty flag
M.setHasUnsavedChanges(val)Set dirty flag
M.getTransforms()tableCurrent transforms
M.setTransforms(transforms)Set transforms
M.getCurrentFileDir()stringCurrent file directory
M.setCurrentFileDir(dir)Set file directory
M.getCurrentFileName()string/nilCurrent file name
M.setCurrentFileName(name)Set file name
M.getUndoStack()tableUndo history
M.setUndoStack(stack)Replace undo stack
M.getRedoStack()tableRedo history
M.setRedoStack(stack)Replace redo stack
M.getMaxUndoSteps()numberMax undo steps (20)
M.getLastError()string/nilLast error message
M.setLastError(error)Set error message
M.getErrorTimeout()numberError display timeout
M.setErrorTimeout(timeout)Set error timeout
M.getUsingPrefabs()ImBoolPtrPrefabs toggle pointer
M.getHasEndCamera()ImBoolPtrEnd camera toggle pointer
M.getSearch()searchUtilSearchable combo utility instance

State Fields

FieldTypeDefault
dragRaceDatatable/nilnil
currentFileDirstring/levels/
currentFileNamestring/nilnil
selectedLaneIndexnumber-1
selectedFacilityIndexnumber-1
selectedStripIndexnumber-1
selectedWaypointIndexnumber-1
hasUnsavedChangesbooleanfalse
maxUndoStepsnumber20

Notes

  • Uses editor/util/searchUtil for searchable combo box support
  • ImGui boolean pointers (im.BoolPtr) for prefabs and end camera toggles
  • Error display managed via lastError + errorTimeout fields
  • Undo/redo stacks capped at 20 steps

See Also

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

Drag Race Editor - Lanes

Manages drag racing lanes within strips. Each lane has waypoints, a boundary, color, ordering, and naming. Provides CRUD, ImGui UI, and 3D preview with axis-aligned box rendering.

Drag Race Editor - Strips

Manages drag racing strip data: loading, selecting, adding, removing, saving, and editing strips with lanes, waypoints, and boundaries. Provides ImGui UI for strip/lane/waypoint/boundary selection and

On this page

Public APIState FieldsNotesSee Also