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

Road Template Editor

Editor window for creating, editing, saving, and loading road templates - composite road definitions with multiple DecalRoad layers, 3D decorations, and random decal patterns.

Editor window for creating, editing, saving, and loading road templates - composite road definitions with multiple DecalRoad layers, 3D decorations, and random decal patterns.


Public API

FunctionSignatureDescription
M.onEditorGui()Main editor GUI - template selection, road/decoration/decal management
M.onEditorInitialized()Registers the Road Template Editor window and preferences
M.onEditorRegisterPreferences(prefsRegistry)Registers roadTemplates.general.loadTemplates preference

Dependencies

DependencyPurpose
editor_roadEditorRequired for road creation/editing API

Template Structure (JSON)

{
  header = { type = "roadTemplate", version = 1.1 },
  roads = { ... },       -- Array of DecalRoad field sets
  decorations = { ... }, -- Array of decoration definitions (shapeName, distance, period, rotation, zOff, align, randomFactor)
  decals = { ... },      -- Array of random decal definitions
}

Key Features

  • Template gallery: Visual thumbnail grid of available templates from level's roadtemplates/ folder
  • Multi-road support: Templates can contain multiple DecalRoad layers with relative positioning
  • Decoration system: Place 3D shapes (props) along roads with configurable spacing and randomization
  • Random decals: Procedurally-placed decal patterns along roads with probability and size controls
  • Save/Load: Templates stored as .road.json files in levels/<levelName>/roadtemplates/

Usage Example

-- Templates are managed through the editor window:
-- Window → Roads → Road Template Editor

-- Preferences control whether templates load at startup:
editor.setPreference("roadTemplates.general.loadTemplates", true)

Module Variables

  • dependencies (table) - Module variable.

Module Variables

  • dependencies (table) - Module variable.

Additional Exports

  • M.dependencies

See Also

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

Road Spline Editor

Main editor tool for creating and managing road splines - multi-layered DecalRoad-based road systems with support for materials, auto-generated detail layers, terrain painting, undo/redo, bitmap impor

Road Utilities

Utility module for road template operations - handles template loading, child road creation, decoration placement, random decal generation, and material management.

On this page

Public APIDependenciesTemplate Structure (JSON)Key FeaturesUsage ExampleModule VariablesModule VariablesAdditional ExportsSee Also