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

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 Extensionseditor

DataBlock Editor

Editor window for browsing, creating, deleting, and saving SimDataBlock objects. Provides a two-tab interface (Existing/New) with inspector integration.

Editor window for browsing, creating, deleting, and saving SimDataBlock objects. Provides a two-tab interface (Existing/New) with inspector integration.


Public API

FunctionSignatureDescription
M.onEditorInitialized()Registers window and menu item
M.onEditorGui()Renders the DataBlock Editor and Create DataBlock windows
M.onEditorInspectorFieldChanged(ids, field, value, idx)Marks edited datablocks as dirty
M.onExtensionLoaded()Logs initialization

Window Features

Existing Tab

  • Tree view of all datablocks grouped by class name
  • Click to select and inspect in the property inspector
  • Dirty indicators (asterisk *) on modified datablocks
  • Save button: saves selected datablock to its file
  • Delete button: removes datablock from file (with undo support)

New Tab

  • Lists all SimDataBlock-derived class names
  • Click a class to open the Create DataBlock dialog
  • Create dialog: name input, optional "copy values from" combo, Create button

Undo/Redo Actions

ActionDescription
CreateDataBlockCreates a new datablock, optionally copies fields from existing
DeleteDataBlockRemoves datablock from its file (persists deletion on next save)

Usage Example

-- Open the DataBlock Editor from code
editor.showWindow("dataBlockEditor")

-- Programmatically create a datablock
local id = editor.createDataBlock("MyNewDB", "SFXDescription")
editor.selectObjectById(id)

Internal Functions

FunctionDescription
getAllDataBlockClasses()Enumerates all SimDataBlock subclasses and their instances
isDataBlock(objectID)Checks if an object ID belongs to the DataBlockSet

Notes

  • Uses Sim.getDataBlockSet() to enumerate all registered datablocks
  • Dirty tracking via editor.isDataBlockDirty() / editor.setDataBlockDirty()
  • Save uses editor.saveDataBlockToFile() for individual and editor.saveDirtyDataBlock() for batch
  • Delete removes from file but object persists in memory until restart

See Also

  • Editor AI Tests - Related reference
  • Editor AI Visualization - Related reference
  • Editor – Assembly Spline Tool - Related reference
  • World Editor Guide - Guide

Create Object Tool

Editor tool for creating scene objects via toolbar groups. Provides categorized buttons (Environment, Level, BeamNG, Other Classes) with click-to-place creation, build functions for default field setu

Decal Editor

Full-featured decal placement and editing tool. Manages DecalData templates and decal instances with multi-selection, gizmo manipulation (translate/rotate/scale), spatial grid acceleration, and debug

On this page

Public APIWindow FeaturesExisting TabNew TabUndo/Redo ActionsUsage ExampleInternal FunctionsNotesSee Also