RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

cdefDebugDraw ReferencecdefGpuMesh ReferencecdefImgui ReferencecdefMath Referencecdefs ReferencecontrolSystems Referencecsvlib ReferencedelayLine Referencedequeue ReferencedevUtils ReferenceEvent Referenceextensions Referencefilters Referencegraphpath Referenceguihooks ReferenceinputFilters ReferenceinterpolatedMap Referenceintrospection ReferencejbeamWriter Referencejson-ast Referencejson ReferencejsonDebug ReferencejsonPrettyEncoderCustom Referencekdtreebox2d Referencekdtreebox3d Referencekdtreepoint3d Referencelpack ReferenceluaBinding ReferenceluaCore ReferenceluaProfiler Referencemathlib Referenceparticles Referencequadtree Referencesettings ReferencetcpServer ReferencetimeEvents Referenceutils Reference
ExpressionParser ReferenceGroups ReferenceInteraction ReferenceIO ReferenceLinks ReferenceLoader ReferenceMaterials ReferenceOptimization ReferenceScaling ReferenceSectionMerger ReferenceSlotSystem ReferenceTableSchema ReferenceUtils ReferenceVariables Reference
Assorted ReferenceCamera ReferenceColors ReferenceEvents ReferenceLicensePlatesSkins ReferenceMeshs ReferenceMirror ReferenceNodeBeam ReferencePaints ReferenceVisual Ropes ReferenceWheels 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 Referencecommonjbeamsections

Visual Ropes Reference

Module defined in `lua/common/jbeam/sections/vropes.lua`. Processes visual rope definitions from JBeam data, creating rendered rope objects attached between props.

Module defined in lua/common/jbeam/sections/vropes.lua. Processes visual rope definitions from JBeam data, creating rendered rope objects attached between props.


Exports

Functions

M.process(objID, vehicleObj, vehicle)

Processes the vropes section, creating visual rope objects connecting two prop anchor points. Configures rope appearance (radius, color, segments, material) and physics behavior (slack, gravity, spring/damp).

  • Parameters:
    • objID - number - Vehicle object ID
    • vehicleObj - userdata - C++ vehicle object
    • vehicle - table - Assembled vehicle data with vropes and props sections
  • Returns: self (module table, for chaining)

Internal Notes

  • Ropes are anchored to props by name via findPropIdByName, which searches vehicle.props for matching name field.
  • Visual rope properties:
    • dirA/dirB: direction vectors (default vec3(0,0,-1))
    • radius: rope thickness
    • color: RGBA color
    • segments: subdivision count
    • material: rendering material
    • slack: rope looseness
    • gravity: gravity multiplier
    • spring/damp: physics simulation parameters
  • Created via createRopeVisual() / getRopeVisual(id) global functions.
  • Prop anchors use vehiclePropIdA / vehiclePropIdB (prop CIDs).

Paints Reference

Module defined in `lua/common/jbeam/sections/paints.lua`. Applies the metallic paint system to the vehicle object from configuration.

Wheels Reference

Module defined in `lua/common/jbeam/sections/wheels.lua`. Constructs wheel geometry (nodes and beams) from JBeam wheel definitions. The largest file in the jbeam subsystem (~2000 lines).

On this page

ExportsFunctionsM.process(objID, vehicleObj, vehicle)Internal Notes