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
ui/ambientSound - Ambient Sound Stream PlayerUI Apps ManagerUI AudioBindings LegendCamera Distance AppConsole (consoleNG)Credits MusicExternal App (WebSocket UI Server)Fade ScreenGame BlurGameplay App ContainersGrid SelectorLivery EditorMessages DebuggerMessages/Tasks App ContainersMission InfoPolice InfoTop BarUI ModsUI Navigation / MapVehicle Paint EditorVehicle Vicinity AppUI Visibility
Top Bar Config

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 ExtensionsuitopBar

Top Bar Config

Static configuration of top bar navigation entries and their flags.

Static configuration of top bar navigation entries and their flags.


Overview

ui_topBar_config defines the entries (buttons) shown in the game's top navigation bar. Each entry specifies a label, icon, target UI state, visibility flags, and ordering. Used by ui_topBar to determine what to display.

Extension path: lua/ge/extensions/ui/topBar/config.lua


Exports (M)

FieldTypeDescription
TopBarEntryTypetableEntry type constants (currently only MAIN).
TopBarEntriestableMap of entry ID → entry definition.

Entry Structure

{
  id          = "bigmap",
  label       = "ui.dashboard.bigmap",      -- translation key
  icon        = "mapWithEmitter",
  targetState = "menu.bigmap",              -- UI state to navigate to
  flags       = {TopBarEntryFlags.IN_GAME_ONLY, ...},
  substate    = "menu.mods",                -- optional prefix for active-item matching
  order       = 3,                          -- sort order (lower = left)
}

Default Entries

IDLabel KeyTarget StateOrderNotable Flags
mainmenuui.dashboard.menumenu.mainmenu1IN_GAME_ONLY
careerui.playmodes.careermenu.careerPause2IN_GAME_ONLY, CAREER_ONLY
bigmapui.dashboard.bigmapmenu.bigmap3NO_SCENARIO, NO_MISSION, NO_GARAGE
modsui.dashboard.modsmenu.mods.local5NO_SCENARIO, NO_MISSION, NO_GARAGE
vehiclesui.dashboard.vehiclesmenu.vehiclesnew6NO_SCENARIO, NO_MISSION, NO_GARAGE, NO_CAREER
vehicleconfigui.dashboard.vehicleconfigmenu.vehicleconfig.parts7NO_SCENARIO, NO_MISSION, NO_GARAGE, NO_CAREER
environmentui.dashboard.environmentmenu.environment8NO_SCENARIO, NO_MISSION, NO_GARAGE, NO_CAREER
photomodeui.dashboard.photomodemenu.photomode9NO_GARAGE
appeditui.dashboard.appeditmenu.appedit10NO_SCENARIO
optionsui.dashboard.optionsmenu.options.graphics11IN_GAME_ONLY

Entry Flags

Flag ConstantMeaning
IN_GAME_ONLYOnly visible when a level is loaded.
CAREER_ONLYOnly in career mode.
NO_CAREERHidden in career mode.
NO_GARAGEHidden in garage mode.
NO_MISSIONHidden during active missions.
NO_SCENARIOHidden during scenarios.
GARAGE_ONLYOnly in garage mode.

How It Works

ui_topBar imports TopBarEntries and uses it as the source of truth for navigation items. The flags are evaluated by ui_topBar.updateVisibleItems() against the current game state to determine which entries appear.


Lua Examples

-- Access entries from another extension
local config = extensions.ui_topBar_config
local bigmap = config.TopBarEntries.bigmap
print(bigmap.targetState)  -- "menu.bigmap"

-- Modify an entry at runtime (via ui_topBar)
extensions.ui_topBar.updateEntry("vehicles", {
  id = "vehicles", label = "My Vehicles", icon = "car",
  targetState = "menu.vehiclesnew", order = 6
})

Additional Exports

The following exports are available but not yet documented in detail:

  • M.TopBarEntries
  • M.TopBarEntryType

Livery Editor – Tools / Transform

Transform tool - translate, rotate, scale, skew, and stamp operations for cursor and decal layers.

Vehicle Selector – Details Interaction

Coordinates vehicle details display with spawn/replace button actions.

On this page

OverviewExports (M)Entry StructureDefault EntriesEntry FlagsHow It WorksLua ExamplesAdditional Exports