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
Sites Editor - LocationsSites Editor - Parking SpotsSites Editor - Sorted List DisplaySites Editor - TagsSites Editor - Zones

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 ExtensionseditorsitesEditor

Sites Editor - Parking Spots

Sub-editor for managing parking spot elements within the Sites Editor. Supports position/rotation/scale editing via transformUtil, vehicle scale presets, and multi-spot configurations.

Sub-editor for managing parking spot elements within the Sites Editor. Supports position/rotation/scale editing via transformUtil, vehicle scale presets, and multi-spot configurations.


Class Methods

MethodDescription
C:init(sitesEditor, key)Initializes with parent editor and transform utility
C:setSites(sites)Binds to sites data; fixes rotation adjustments from multi-spots
C:select(ps)Selects a parking spot and syncs multi-spot UI state
C:hitTest(mouseInfo, objects)OBB ray intersection test against all spots (incl. multi-spot copies)
C:create(pos)Creates a new parking spot at position (with undo)
C:remove(ps)Removes a parking spot (with undo)
C:setTransform()Sets transform utility from current spot's pos/rot/scl
C:updateFromTransform()Writes transform utility values back to spot
C:updateTransform()Commits transform change to undo history
C:updateMultiSpot()Syncs multi-spot UI values to the current spot data
C:drawElement(ps, mouseInfo)Draws transform gizmo, scale combo, and multi-spot UI

Example: Parking Spot Management

local parkingSpots = require('editor/sitesEditor/parkingSpots')
local psEditor = parkingSpots(sitesEditorRef, 'parkingSpots')

psEditor:setSites(currentSites)

-- Hit test uses OBB intersection (supports multi-spot bounding boxes)
local hit = psEditor:hitTest(mouseInfo, currentSites.parkingSpots.objects)

-- Vehicle scale presets:
-- "Car"      = vec3(2.5, 6, 3)
-- "LargeCar" = vec3(3.25, 8, 4)
-- "Bus"      = vec3(4, 14, 8)

-- Multi-spot configuration:
-- spotAmount: 1-25 copies
-- spotOffset: gap between copies
-- spotDirection: "Left", "Right", "Front", "Back"
-- spotRotation: -1.55 to 1.55 radians

Module Variables

  • windowDescription (string) - Module variable.

Module Variables

  • windowDescription (string) - Module variable.

See Also

  • Sites Editor - Locations - Related reference
  • Sites Editor - Sorted List Display - Related reference
  • Sites Editor - Tags - Related reference
  • World Editor Guide - Guide

Sites Editor - Locations

Sub-editor for managing location elements within the Sites Editor. Handles hit-testing, gizmo-based transform editing (translate/scale), and undo/redo for location creation/removal.

Sites Editor - Sorted List Display

Generic sorted list UI wrapper for the Sites Editor. Manages element selection (single/multi), search filtering, custom fields, tags, name/color editing, and delegates to element-specific editors.

On this page

Class MethodsExample: Parking Spot ManagementModule VariablesModule VariablesSee Also