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
Editor Element HelperPlot Helper UtilitySearch UtilityTransform UtilityVehicle Filter UtilityVehicle Select UtilityZone Selector Utility

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 Extensionseditorutil

Zone Selector Utility

Zone selection widget for mission/quest editor - loads zones from a sites file and provides UI for selecting initial (spawn) and destination zones.

Zone selection widget for mission/quest editor - loads zones from a sites file and provides UI for selecting initial (spawn) and destination zones.


Class: C (returned by factory function)

MethodSignatureDescription
C:init(element)element: tableStores element reference with zone selector state
C:loadZonesFromSitesFile(ctd)-Loads zone names from {globalInfoFolder}/garages.sites.json
C:setContainer(ctd)-Restores initial/destination zone arrays from container data
C:draw(ctd, container, labelFn)-Renders full zone selection UI; returns true if changed

Data Fields (on element)

FieldTypeDescription
initialZones{string, ...}Selected initial zone names (spawn points)
destinationZones{string, ...}Selected destination zone names
loadedZones{string, ...}Cached available zone names (sorted alphabetically)
zonesLoadedboolWhether zones have been loaded from file
sitesFilestringCached sites file path

Usage Example

-- Zone selector is typically used via editorElementHelper:
local helper = require('/lua/ge/extensions/editor/util/editorElementHelper')({}, 'mission')
helper:addZoneSelector("Zones", "zones", "globalInfoFolder")
helper:setContainer(missionContainer)
helper:draw()

-- The UI provides:
-- * "Initial Zones" section with dropdown to add zones
--   - Select All / Remove All buttons
--   - Scrollable list with per-zone Remove buttons
-- * "Destination Zones" section (same layout)
-- * Summary showing count of selected zones

-- Saved data structure (in missionTypeData):
-- ctd["zones_initialZones"] = {"zone_a", "zone_b"}
-- ctd["zones_destinationZones"] = {"zone_c", "zone_d"}

-- Zones are loaded from garages.sites.json via gameplay_sites_sitesManager
-- The globalInfoFolder field tells the selector where to find the sites file
-- Zones are cached and only reloaded when the folder path changes

-- Example sites file structure:
-- {
--   "zones": {
--     "sorted": [
--       {"name": "zone_downtown"},
--       {"name": "zone_highway"},
--       {"name": "zone_suburb"}
--     ]
--   }
-- }

See Also

  • Editor Element Helper - Related reference
  • Plot Helper Utility - Related reference
  • Search Utility - Related reference
  • World Editor Guide - Guide

Vehicle Select Utility

Vehicle model/config/paint selector widget for ImGui - provides dropdowns for vehicle type, model, config, paint layers, and optional custom config paths.

Vehicle Editor - Toolbar

Main toolbar for the Vehicle Editor providing tabbed switching between Static and Live editor modes, app menus, layout management, vehicle spawn/remove controls, and camera/time-of-day sliders.

On this page

Class: C (returned by factory function)Data Fields (on element)Usage ExampleSee Also