RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Auto AnnotationBoosterCalibrate ESCCompile ImpostersCompile MeshesConfig List GeneratorDecal Roads EditorDependency TreeDoc CreatorVehicle ExporterFollow The White RabbitForest GeneratorGround Model DebugInput System UtilsInstanced Line Render DemoJBeam StatsLog StreamsMap TilesNode Beam ExportNode StreamPhotomodePrecompile ShadersPrecompile VehiclesProcedural Track GeneratorRectangle GeneratorRender Components APIResave MaterialsRich PresenceSave Dynamic DataScreenshot CreatorShowroomSort LinesStep HandlerTerrain GeneratorTest Extension ProxiesTest JSON Files SyntaxVehicle Rope DebugBatch WorkerWebSocket Test

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 Extensionsutil

Photomode

Provides overlay file listing for the photo mode UI.

Provides overlay file listing for the photo mode UI.


Overview

util_photomode scans for available photo mode overlay PNG files and returns them as a list. Used by the photo mode UI module to populate overlay selection.

Extension path: lua/ge/extensions/util/photomode.lua


Exports (M)

FunctionSignatureDescription
getPhotomodeOverlays()Returns array of available overlay files.

Internals

Overlay Discovery

Scans ui/modules/photomode/ui-overlays/ for *.png files (non-recursive, depth 0).

Returns an array of tables:

{
  {filename = "ui/modules/photomode/ui-overlays/grid_3x3.png"},
  {filename = "ui/modules/photomode/ui-overlays/golden_ratio.png"},
  ...
}

How It Works

  1. The photo mode UI calls getPhotomodeOverlays().
  2. The function scans the overlays directory for PNG files.
  3. Results are returned as an array of {filename} tables for the UI to display.

Lua Examples

-- Get available photo mode overlays
local overlays = extensions.util_photomode.getPhotomodeOverlays()
for _, overlay in ipairs(overlays) do
  print(overlay.filename)
end

Additional Exports

  • M.getPhotomodeOverlays - (undocumented)

See Also

  • Auto Annotation - Related reference
  • Booster - Related reference
  • Calibrate ESC - Related reference
  • Game Engine Overview - Guide

Node Stream

WebSocket server that streams real-time vehicle node positions to connected clients. Also serves initial node positions and flexbody mapping data on request.

Precompile Shaders

M.dependencies = {'core_levels'}

On this page

OverviewExports (M)InternalsOverlay DiscoveryHow It WorksLua ExamplesAdditional ExportsSee Also