RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

server/commands - Camera & Input Commandsge_utils - Game Engine Utility Functionsmain.lua - GE Lua Entry Point & Game Loopmap.lua - Navigation Graph (AI Road Map)screenshot.lua - Screenshot Systemserver/server - Level Loading & Game ServerserverConnection - Client-Server Connection Manager`setSpawnpoint` - Default Spawn Point Persistence`simTimeAuthority` - Simulation Time & Bullet Time Control`spawn` - Vehicle Spawning & Safe Placement`suspensionFrequencyTester` - Suspension Natural Frequency Analysis
Auto AnnotationBoosterCalibrate ESCCompile ImpostersCompile MeshesConfig List GeneratorDecal Roads EditorDependency TreeDoc CreatorExport (glTF)Follow The White RabbitForest GeneratorGround Model DebugInput System UtilsInstanced Line Render DemoJBeam StatsLog StreamsMap TilesNode Beam ExportNode StreamPhotomodePrecompile ShadersPrecompile VehiclesProcedural Track (Gymkhana Generator)Rectangle GeneratorRender Components APIResave MaterialsRich PresenceSave Dynamic DataScreenshot Creator (Vehicle Thumbnails)ShowroomSort LinesStep HandlerTerrain GeneratorTest Extension ProxiesTest JSON Files Syntaxutil/vehicleRopeDebug - Rope Physics Debug UIutil/worker - Batch Job Workerutil/wsTest - WebSocket Test Server

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)

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 Exports