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

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.


Public API

FunctionSignatureDescription
M.loadAllLanes()Loads all lanes via dragSaveSystem.getAllLanes()
M.getAllLanes()→ tableReturns all loaded lanes
M.getSelectedLaneIndex()→ numberCurrent selection index
M.setSelectedLaneIndex(idx)Set selection index
M.getSelectedLane()→ table/nilReturns selected lane
M.selectLane(idx)Select a lane by index
M.addLane()Creates a new default lane
M.removeSelectedLane()Removes selected lane
M.saveLane(lane)→ boolSaves lane to .lane.json file
M.drawLanesSection()Renders lane list with Add/Remove/Save buttons
M.drawLaneDetails()Renders lane inspector (ID, names, color, order, waypoints, boundary)
M.drawTransformsPreview()Debug-draws lane name in 3D viewport
M.drawAxisBox(corner, x, y, z, clr)Helper: draws a colored axis-aligned box with triangle faces

Lane Structure

{
  id = "new_lane_1",
  name = "New Lane",
  shortName = "Lane 1",
  longName = "Lane 1",
  color = "blue",          -- "blue"|"red"|"green"|"yellow"|"purple"|"orange"
  laneOrder = 1,
  waypointIds = {},
  boundaryId = "",
  metadata = { created = "...", modified = "..." }
}

Detail Panel

FieldWidgetDescription
IDText inputUnique lane identifier
NameText inputLane display name
Short NameText inputAbbreviated name
Long NameText inputFull descriptive name
ColorSearchable comboLane color (6 options)
Lane OrderInt inputOrdering within strip
WaypointsCount + Add buttonNumber of waypoint IDs
Boundary IDText inputReference to boundary file

Axis Box Helper

-- Draws a solid colored box from corner along three axis vectors
M.drawAxisBox(corner, xVec, yVec, zVec, ColorF(1, 0, 0, 0.5))

Renders all 6 faces as double-sided triangles with edge lines.


Notes

  • Lane files saved as <laneId>.lane.json in the level's drag path
  • Uses state.getSearch() for searchable combo boxes
  • Tooltip on hover shows ID, short/long name, and order

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

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

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.

On this page

Public APILane StructureDetail PanelAxis Box HelperNotesSee Also