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

Scaling Reference

Module defined in `lua/common/jbeam/scaling.lua`. Applies `scale*` prefixed properties to their corresponding base values by multiplication.

Module defined in lua/common/jbeam/scaling.lua. Applies scale* prefixed properties to their corresponding base values by multiplication.


Exports

Functions

M.process(vehicle)

Walks all dict-type sections in vehicle data. For any numeric property whose key starts with "scale" (detected via byte comparison), multiplies the corresponding base property (key without the "scale" prefix) by the scale value, then removes the scale key.

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

Internal Notes

  • Example: { beamSpring = 1000, scalebeamSpring = 2.0 } → { beamSpring = 2000 }.
  • Uses an iterative stack-based traversal (not recursive function calls) for performance.
  • Skips sections listed in jbeamUtils.ignoreSections (maxIDs, options).
  • The "scale" prefix is detected by checking bytes 1-5 equal to s,c,a,l,e and byte 6 exists.
  • Runs after jbeamGroups.process in the pipeline.

See Also

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

Optimization Reference

Module defined in `lua/common/jbeam/optimization.lua`. Assigns continuous IDs (CIDs) to vehicle data entries, optimizes beam ordering, cleans up runtime-unnecessary data, and dereferences object point

SectionMerger Reference

Module defined in `lua/common/jbeam/sectionMerger.lua`. Merges duplicate/aliased JBeam sections together for backward compatibility (e.g. `triggers2` → `triggers`).

On this page

ExportsFunctionsM.process(vehicle)Internal NotesSee Also