RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

AI Module ReferenceBackwards Compatibility Module ReferenceBdebug Module ReferenceBdebugImpl Module ReferenceBeamstate Module ReferenceBullettime Module ReferenceController Module ReferenceDamageTracker Module ReferenceDrivetrain Module ReferenceElectrics Module ReferenceElectrics Custom Value ParserEnergyStorage Module ReferenceExtensions Module ReferenceFire Module ReferenceVehicle Engine True GlobalsGuihooks Module ReferenceGUI Streams Module ReferenceHTML Texture Module ReferenceHydros Module ReferenceInput Module ReferenceJBeam-Lua Integration GuideMapmgr Module ReferenceMaterial Module ReferenceBeamNG Math & Unit Conversions Referenceobj (Vehicle C++ Object)PartCondition Module ReferenceParticlefilter Module ReferenceParticles Module ReferencePowertrain Module ReferenceVehicle Property & Module TreeProps Module ReferenceProtocols Module ReferenceRecovery Module ReferenceScriptAI Module ReferenceSensors Module ReferenceSounds Module ReferenceStreams Module ReferenceThrusters Module Reference`v` (Vehicle Data & JBeam)Wheels Module 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 Referenceve

Hydros Module Reference

Module defined in `lua/vehicle/hydros.lua`. This module simulates hydraulic actuators (hydros) and torsion hydros, primarily used for steering and complex animated parts. It also handles Force Feedbac

Module defined in lua/vehicle/hydros.lua. This module simulates hydraulic actuators (hydros) and torsion hydros, primarily used for steering and complex animated parts. It also handles Force Feedback (FFB) calculation, soft-lock limits, and gamepad vibrations.

See Also

  • Input: For steering input sources.
  • Controller/Hydraulics: Logic for complex hydraulic systems.

Force Feedback (FFB) State

Live telemetry and configuration for hardware feedback.

VariableTypeDescription
enableFFBbooleanIf false, skips sending FFB requests to hardware.
enableVibrationbooleanToggles gamepad vibration logic.
forceAtWheelNormnumberReal torque measured at the steering rack (0-1).
forceAtDriverNormnumberNormalized force sent to the driver (0-1).
curForceLimitNormnumberCurrent safety limit for FFB spikes (0-1).
wheelFFBForceLimitnumberMaximum steady force limit (default: 10).

State Fields - Actuators

VariableDescription
hydros, torsionHydrosActive JBeam data tables for hydraulic actuators. Properties: Includes state (0-1), cmd (target), and bcid (associated beam/torsion CID).

Public API

FunctionSignatureDescription
hydros.onFFBConfigChanged(config)Callback triggered when FFB bindings or settings are changed. Re-initializes heuristics for update frequency and response curves.
hydros.sendRPMLeds(current, firstLed, redline)Sends RPM data to hardware peripherals (steering wheels with LEDs).
hydros.setExternalForce(force)Injects an external force into the FFB calculation. Useful for custom physics extensions.
hydros.enableVirtualWheel(enabled, angleFun, sendFun)Toggles the virtual steering wheel simulation (used for mouse steering or non-FFB hardware).
hydros.sendHydroStateToGUI()Triggers the HydrosUpdate UI event with current actuator states.
hydros.init() / reset()Module bootstrapping. Identifies steering hydros, sets up FFB smoothers, and clears caches.
hydros.update(dt)High-frequency update (2000Hz). Calculates FFB torque, handles torsion hydro movement, and manages the soft-lock steering stops.
hydros.updateGFX(dt)Maps inputs to hydro targets, calculates FFB safety limits, and runs vibration logic for gamepads.
hydros.destroy()Final cleanup. Turns off FFB hardware and clears SFX sources.
module.setWheelSlipForceMultiplier(multiplier)Sets the wheel slip force multiplier.
module.setJerkForceMultiplier(multiplier)Sets the jerk force multiplier.
module.setWheelSlipMin(min)Sets the wheel slip min.
module.setJerkMin(min)Sets the jerk min. Returns M.
module.getFFBConfig()Returns the f f b config. Returns table.
module.setFFBConfig(ffbParams)Sets the f f b config.
module.isPhysicsStepUsed()Checks if physics step used. Returns M.update == update.

HTML Texture Module Reference

Module defined in `lua/vehicle/htmlTexture.lua`. Manages HTML-based textures rendered onto vehicle surfaces, used for digital dashboards, infotainment screens, and other in-vehicle displays powered by embedded web views.

Input Module Reference

Module defined in `lua/vehicle/input.lua`. This module processes raw user inputs from various sources (keyboard, gamepad, steering wheel, AI), applies temporal smoothing and driving assistants, and br

On this page

See AlsoForce Feedback (FFB) StateState Fields - ActuatorsPublic API