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 - 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.

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.


Class Methods

MethodDescription
C:init(sitesEditor, key)Initializes with parent editor reference and data key
C:setSites(sites)Binds to a sites object and its location list
C:select(loc)Selects a location and updates the axis gizmo transform
C:hitTest(mouseInfo, objects)Ray-tests against location spheres, returns closest hit
C:updateTransform()Sets the axis gizmo position from the current location
C:beginDrag()Records starting position and radius before drag
C:dragging()Updates position (translate) or radius (scale) during drag
C:endDragging()Commits transform change to undo history
C:create(pos)Creates a new location at the given position (with undo)
C:remove(loc)Removes a location (with undo)
C:drawElement(loc)Draws gizmo for the selected location element

Example: Location Element Lifecycle

-- Locations are created by the sortedListDisplay wrapper
-- Internal usage within the sites editor:

local locations = require('editor/sitesEditor/locations')
local locEditor = locations(sitesEditorRef, 'locations')

-- Bind to sites data
locEditor:setSites(currentSites)

-- Select a location
locEditor:select(someLocation)

-- Hit test against all location objects
local hit = locEditor:hitTest(mouseInfo, currentSites.locations.objects)
if hit then
  locEditor:select(hit)
end

-- Create a new location at mouse position
local newLoc = locEditor:create(mouseInfo._downPos)

-- Remove the current location
locEditor:remove(currentLocation)

Notes

  • Locations are spheres with position and radius
  • Uses editor.AxisGizmoMode_Translate and editor.AxisGizmoMode_Scale
  • Undo/redo uses editor.history:commitAction with paired callbacks

Module Variables

  • windowDescription (string) - Module variable.

Module Variables

  • windowDescription (string) - Module variable.

See Also

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

Sidewalk Spline Manager

Manages sidewalk spline data structures, including creation, removal, splitting, joining, undo/redo, profile copy/paste, and serialization. Works with `kit`, `populate`, and `geom` submodules.

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.

On this page

Class MethodsExample: Location Element LifecycleNotesModule VariablesModule VariablesSee Also