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
Automatic GearboxCentrifugal ClutchCombustion EngineCombustion Engine ThermalsCompressorCVT GearboxDCT GearboxDifferentialElectric MotorElectric ServoElectric WinchPowertrain Components OverviewFriction ClutchGeneric Torque ProviderHydraulic AccumulatorHydraulic CylinderHydraulic PumpHydraulic WinchLinear ActuatorManual GearboxMulti-ShaftNitrous Oxide InjectionPowertrain Base DeviceRange BoxSequential GearboxShaftSplit ShaftSuperchargerTorque ConverterTorsion ReactorTurbochargerViscous Clutch

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 Referencevepowertrain

Manual Gearbox

Traditional manual transmission with H-pattern or sequential shifting. Simulates gear engagement, synchronizer behavior, and gear grinding mechanics.

Traditional manual transmission with H-pattern or sequential shifting. Simulates gear engagement, synchronizer behavior, and gear grinding mechanics. Requires a Friction Clutch upstream for gear changes.


Inherited Methods

This device inherits all methods and properties from the Powertrain Base Device.

Instance Methods

MethodSignatureDescription
setGearIndexdevice:setGearIndex(index)Shifts to the specified gear. 0 = Neutral, 1+ = Forward gears, -1 = Reverse.
setLockdevice:setLock(enabled)Toggles the internal mechanical lock state.
setGearGrindingdevice:setGearGrinding(active, targetGearIndex, maxGrindingTorque)Manually triggers or stops gear grinding simulation.

Public API

VariableTypeDescription
outputPortstableMap of active power output ports.
deviceCategoriestableCategories identifying this as a gearbox type device.
FunctionSignatureDescription
new(jbeamData) → deviceCreates a new manual gearbox instance from JBeam configuration.
velocityUpdate(device, dt)Physics step: calculates input speed from output speed and gear ratio.
torqueUpdate(device)Physics step: transmits torque from input to output through the current gear.

Usage Example

-- Access the manual gearbox
local gearbox = powertrain.getDevice("gearbox")

-- Shift to 3rd gear
gearbox:setGearIndex(3)

-- Shift to neutral
gearbox:setGearIndex(0)

-- Shift to reverse
gearbox:setGearIndex(-1)

See Also

  • Friction Clutch — Required clutch for gear changes
  • Sequential Gearbox — Race-oriented sequential alternative
  • Automatic Gearbox — Automatic transmission
  • Powertrain Base Device — Inherited base methods

Linear Actuator

Electric linear actuator that converts rotational motor output to linear motion. Used for adjustable suspension, deployable components, and positioning systems.

Multi-Shaft

Powertrain device that connects multiple rotational shafts together. Distributes torque across several outputs, used for complex drivetrain layouts like multi-axle trucks.

On this page

Inherited MethodsInstance MethodsPublic APIUsage ExampleSee Also