RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
`adasUltrasonic.lua``cameraPreview.lua``capturePlayer.lua``license.lua``lidarTest.lua``multiscreen.lua``openDriveExporter.lua``openStreetMapExporter.lua``partAnnotations.lua``platoonFunctions.lua``pythonExport.lua``rawLidar.lua``rawLidarEmpty.lua``sensors.lua``sumoExporter.lua``techCore.lua``terrainImporter.lua``ultrasonicTest.lua``utils.lua`

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 Extensionstech

`openDriveExporter.lua`

> This Source Code Form is subject to the terms of the bCDDL, v. 1.1.

This Source Code Form is subject to the terms of the bCDDL, v. 1.1. If a copy of the bCDDL was not distributed with this file, You can obtain one at http://beamng.com/bCDDL-1.1.txt

Module variable: M

Exported Functions

M.export(filename)

Line 475

Public interface.

Returns: M

Internal Functions

Show internal functions
  • compute2dCoords() (line 24)
  • getChildren(table) (line 31)
  • doesCollectionContainSegment(collection, testSeg) (line 43)
  • doesSegmentContainKey(currentPath, nextSuccessorKey) (line 61)
  • getKeysSortedByValue(tbl, sortFunction) (line 70)
  • sortDescending(a, b) (line 81)
  • computePathSegments() (line 86)
  • computeTangents(pn0, pn1, pn2, pn3) (line 157)
  • findTrunkRoadTangent(key, stdTangent) (line 173)
  • fitCubic(p0, p1, p2, p3, length) (line 206)
  • computeRoads() (line 218)
  • graphToJunctionMap() (line 277)
  • updateConnectivityData() (line 297)
  • computeJunctions() (line 335)
  • writeXodr(filename) (line 358)
  • export(filename) (line 475)

    Exports the road network from the currently-loaded map to OpenDRIVE (.xodr) format.


See Also

  • adasUltrasonic.lua - Related reference
  • cameraPreview.lua - Related reference
  • capturePlayer.lua - Related reference
  • Game Engine Overview - Guide

`multiscreen.lua`

> This Source Code Form is subject to the terms of the bCDDL, v. 1.1.

`openStreetMapExporter.lua`

> This Source Code Form is subject to the terms of the bCDDL, v. 1.1.

On this page

Exported FunctionsM.export(filename)Internal FunctionsSee Also