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

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.


Module: M.CONSTANTS

Window

ConstantValueDescription
WINDOW_NAME"Drag Race Editor"ImGui window title
WINDOW_SIZE{x=1800, y=900}Default window dimensions

File I/O

ConstantValueDescription
DEFAULT_FILE_DIR"/levels/"Default file dialog directory
FILE_EXTENSION".dragSettings.json"Settings file extension

Enumerations

ConstantValues
DRAG_TYPES"headsUpRace", "bracketRace", "dragPracticeRace"
RACE_PHASES"stage", "countdown", "race", "stop"
TREE_TYPES".400", ".500"
CONTEXT_TYPES"freeroam", "activity"

Defaults

ConstantValue
DEFAULT_TRANSFORM{position={0,0,0}, rotation={0,0,0,w=1}, scale={1,1,1}}
DEFAULT_WAYPOINT{speed=5, mode="limit"}

Colors

NameValue
WHITEColorF(1,1,1,1)
BLACKColorI(0,0,0,192)
REDColorF(1,0,0,0.8)
GREENColorF(0,1,0,0.8)
BLUEColorF(0,0,1,0.8)
YELLOWColorF(1,1,0,0.8)
SUCCESSGreen ImVec4
WARNINGYellow ImVec4
ERRORRed ImVec4

UI

ConstantValue
INPUT_WIDTH120
BUTTON_HEIGHT20
SPACING5

Usage Example

local constants = require('editor/dragRaceEditor/constants')
local winName = constants.CONSTANTS.WINDOW_NAME
local types = constants.CONSTANTS.DRAG_TYPES

See Also

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

Decal Spline Manager

Core data management module for decal splines. Handles CRUD operations, deep copy, serialization, undo/redo, profile copy/paste, spline splitting/joining, bitmap import, and dirty-state updates.

Drag Race Editor - Drag Settings

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

On this page

Module: M.CONSTANTSWindowFile I/OEnumerationsDefaultsColorsUIUsage ExampleSee Also