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

Slot Traffic Editor

Editor extension for editing navgraph-based traffic slot configurations - provides a visual node/link editor for road networks with traffic lane assignment, road properties, and navgraph manipulation.

Editor extension for editing navgraph-based traffic slot configurations - provides a visual node/link editor for road networks with traffic lane assignment, road properties, and navgraph manipulation.


Public Functions

FunctionDescription
M.onEditorGui()Main GUI - navgraph node/link editor with traffic slot configuration
M.onEditorInitialized()Registers the editor window, edit mode, action map, and preferences
M.onEditorObjectSelectionChanged()Handles editor object selection changes
M.onEditorRegisterPreferences(prefsRegistry)Registers slot traffic editor preferences
M.onEditorPreferenceValueChanged(path, value)Handles preference value changes
M.onEditorAfterSaveLevel()Post-save level callback
M.onNavgraphReloaded()Handles navgraph reload events
M.selectAllNodes()Selects all navgraph nodes

Example: Traffic Slot Configuration

-- The Slot Traffic Editor provides a UI for traffic slot management.
-- It works with the gameplay_traffic extension for applying configs.

-- Each slot has:
--   model: vehicle model name (e.g., "pickup", "etk800")
--   paint: paint preset index (0 = random)
--   amount: number of vehicles for this slot

-- UI workflow:
-- 1. Click "Get Slot Data" to load current traffic configuration
-- 2. Edit model, paint, and amount columns in the table
-- 3. Use +/- buttons to add/remove slots
-- 4. Click "Set Traffic" to apply, or "Delete Traffic" to clear

-- The editor integrates with:
--   gameplay_traffic.setupTraffic(slotData)  -- apply slots
--   gameplay_traffic.deleteVehicles()        -- remove all traffic
--   gameplay_traffic.getTrafficData()        -- read current config
--   core_vehicles.getModelList()             -- available vehicle models

-- Slot data structure:
-- {
--   { model = "pickup", paint = 0, amount = 3 },
--   { model = "etk800", paint = 2, amount = 1 },
-- }

Functions

onEditorObjectSelectionChanged()

Callback for editor object selection changed event.

onEditorRegisterPreferences(prefsRegistry)

Callback for editor register preferences event.

  • prefsRegistry (any)

onEditorPreferenceValueChanged(path, value)

Callback for editor preference value changed event.

  • path (string)
  • value (any)

onEditorAfterSaveLevel()

Callback for editor after save level event.

onNavgraphReloaded()

Callback for navgraph reloaded event.

selectAllNodes()

Selects all nodes.


See Also

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

Sites Editor

Main editor extension for creating/editing gameplay sites (locations, zones, parking spots). Provides an ImGui-based editor window with tabs, file I/O, sorting tools, and sites manager integration.

Suspension Audio Debug

Editor extension for visualizing and debugging vehicle suspension audio parameters. Renders real-time graphs of shock compression, surface data, and audio-related wheel metrics. Also displays IMU and

On this page

Public FunctionsExample: Traffic Slot ConfigurationFunctionsonEditorObjectSelectionChanged()onEditorRegisterPreferences(prefsRegistry)onEditorPreferenceValueChanged(path, value)onEditorAfterSaveLevel()onNavgraphReloaded()selectAllNodes()See Also