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

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 model/config/paint selector widget for ImGui - provides dropdowns for vehicle type, model, config, paint layers, and optional custom config paths.


Class: C (returned by factory function)

Core Methods

MethodSignatureDescription
C:init(name, data)data: {model, config, customConfigPath, customConfigActive, paintName, paintName2, paintName3}Initialises selections from optional data
C:setModel(model)model: string (key)Sets the model by key; looks up name and type
C:setConfig(config)config: string (key)Sets the config by key (model must be set first)
C:setOptions(data){enableConfigs, enablePaints, enableCustomConfig, paintLayers, columnWidth}Configures which UI sections are shown
C:resetModel()-Clears model selection and cached model list
C:resetConfig()-Clears config selection and custom config path
C:resetPaint()-Clears paint selection
C:resetSelections()-Resets all selections (type, model, config, paint)
C:resetOptions()-Resets options to defaults; sets allowed types/subtypes
C:fetchData()-Lazy-loads model/config/paint data from core_vehicles
C:widget()-Renders the full selector UI; returns update reason string or nil
C:getPaintPtr(paintTbl)-Converts paint data to ImGui float4 pointer for colour preview

Properties

PropertyTypeDescription
modelstringSelected model key
modelNamestringDisplay name of selected model
configstringSelected config key
configNamestringDisplay name of selected config
configPathstringPath to config .pc file
vehTypestringSelected vehicle type (Car, Truck, etc.)
customConfigPathstringOptional custom .pc file path
customConfigActiveboolWhether custom config is being used
paintName / paintName2 / paintName3stringSelected paint names per layer
allowedTypestableVehicle types shown in type dropdown
modelBlacklisttableModels excluded from selection {[key]=true}
configBlacklisttableConfigs excluded {[model]={[key]=true}}

Usage Example

local vehicleSelectUtil = require('/lua/ge/extensions/editor/util/vehicleSelectUtil')

-- Create a selector with preset data
local selector = vehicleSelectUtil("Player Vehicle", {
  model = "vivace",
  config = "Base"
})

-- Enable paint selection (3 layers)
selector:setOptions({
  enableConfigs = true,
  enablePaints = true,
  enableCustomConfig = true,
  paintLayers = 3,
  columnWidth = 100
})

-- Restrict to cars only
selector.allowedTypes = {"Car"}
selector.modelBlacklist = {propcar = true}

-- In editor GUI:
local updateReason = selector:widget()
if updateReason then
  log("I", "", "Changed: " .. updateReason)
  log("I", "", "Model: " .. tostring(selector.model))
  log("I", "", "Config: " .. tostring(selector.config))
  log("I", "", "Paint: " .. tostring(selector.paintName))

  if selector.customConfigActive then
    log("I", "", "Custom config: " .. selector.customConfigPath)
  end
end

-- Update reasons: "type", "model", "config", "customConfig",
--                 "paintName", "paintName2", "paintName3"

Stub/TODO Methods

MethodSignatureStatus
C:setModelListByField(key, value, disallow)-TODO (not implemented)
C:setConfigListByField(model, key, value, disallow)-TODO (not implemented)

Callbacks

MethodDescription
C:onActivate()Empty callback (no-op)
C:onDeactivate()Empty callback (no-op)

See Also

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

Vehicle Filter Utility

Vehicle filter editor for missions/quests - provides a UI for base filters (whitelist/blacklist), probability-weighted sub-filters, manual additions/removals, and vehicle selection using configListGen

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.

On this page

Class: C (returned by factory function)Core MethodsPropertiesUsage ExampleStub/TODO MethodsCallbacksSee Also