RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Debug DrawingGPU Mesh StructsImGui FFIMath Structs (FFI)FFI C DefinitionsPID ControllersCSV LibraryDelay LineDequeDevelopment UtilitiesEvent ReferenceExtension SystemSignal FiltersGraph PathfindingUI BridgeInput Filter Constants2D Bilinear InterpolationIntrospectionJBeam Pretty PrinterJSON AST ParserSJSON ParserJSON Debug ParserJSON Pretty PrinterK-D Tree (2D Boxes)K-D Tree (3D)K-D Tree (3D)Lua SerializerC++/Lua BindingLua CoreLua ProfilerMath LibraryParticlesQuadtreeSettingsTCP ServerTimer SchedulerUtility Library
ExpressionParser ReferenceGroups ReferenceInteraction ReferenceIO ReferenceLinks ReferenceLoader ReferenceMaterials ReferenceOptimization ReferenceScaling ReferenceSectionMerger ReferenceSlotSystem ReferenceTableSchema ReferenceUtils ReferenceVariables Reference

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 Referencecommonjbeam

Groups Reference

Module defined in `lua/common/jbeam/groups.lua`. Processes group arrays on JBeam rows, converting group name lists into indexed lookup tables and assigning group IDs.

Module defined in lua/common/jbeam/groups.lua. Processes group arrays on JBeam rows, converting group name lists into indexed lookup tables and assigning group IDs.


Exports

Functions

M.process(vehicle)

Walks all sections/rows of the vehicle data. For each row with a group field (table of group name strings), assigns unique integer IDs to each group name and converts the group array into a map of {[groupId] = groupName}. Sets row.firstGroup to the first group's ID. Populates vehicle.groups with the global {groupName → groupId} map.

  • Parameters:
    • vehicle - table - The assembled vehicle data table
  • Returns: self (module table, for chaining)

Internal Notes

  • Group IDs are assigned incrementally starting from 0.
  • Empty string group names ("") are skipped.
  • The vehicle.groups table maps group name → integer ID (shared across all sections).
  • Must run after processWheels and processRotators since those add rows with group data.
  • row.firstGroup stores the ID of the first non-empty group for quick access.

See Also

  • ExpressionParser Reference - Related reference
  • Interaction Reference - Related reference
  • IO Reference - Related reference
  • Common Libraries Overview - Guide

ExpressionParser Reference

Module defined in `lua/common/jbeam/expressionParser.lua`. Parses and evaluates `$=` expressions in JBeam data, providing a sandboxed math environment with variable substitution.

Interaction Reference

Module defined in `lua/common/jbeam/interaction.lua`. Loads and merges `.interaction.json` files for vehicle input action definitions.

On this page

ExportsFunctionsM.process(vehicle)Internal NotesSee Also