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
Advanced Wheel DebugAero DebugVehicle APIChassis DataCouplingsCruise ControlDrag AIDynamic Vehicle DataDyno ClientESC CalibrationESC MeasurementVehicle Extensions OverviewGameplay InterfaceGameplay StatisticInput AnalyzerMQTT Grafana DemoOdometerOutGaugeOutSimPerfect LaunchPerformance LoggerSimple Trip AppSkeletonStraight LineTelemetry LoggerUT RecorderVehicle Performance DataVehicle Stats Logger
Adaptive Cruise Control (ACC)ADAS InputADAS UltrasonicAdvanced IMUDump Player InputGPS SensorIdeal RADAR SensorMesh SensorOBD EmulatorPlatooningPowertrain SensorRoads SensorTechCore Module ReferenceTrail SimTyre BarrierVehicle Points of InterestVehicle SearcherVehicle Systems CouplingWheel Forces
LIN Bus (PCAN)

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 ReferenceveextensionstechLINBus

LIN Bus (PCAN)

Interface to PEAK-System PLIN hardware for LIN bus communication. Enables BeamNG to communicate with LIN slave devices like seat controls, window motors, and climate systems.

Interface to PEAK-System PLIN hardware for LIN bus communication. Enables BeamNG to communicate with LIN slave devices like seat controls, window motors, and climate systems for hardware-in-the-loop testing.


Public API

VariableTypeDescription
linBusAPIuserdataHandle to the native PLIN API library.
hardwareTypestableSupported LIN hardware types.
modestableLIN bus operating modes (master, slave).
directionstableMessage direction flags (publish, subscribe).
checksumTypestableLIN checksum type options (classic, enhanced).
errorCodestableLIN error code definitions.
clientuserdataActive LIN client handle.
hardwareuserdataActive LIN hardware handle.
errorCodeLookuptableReverse lookup for error code names.
isConnectedbooleanWhether a PLIN adapter is currently connected and initialized.

Hooks

HookDescription
onExtensionLoadedLoads the PLIN DLL and initializes the LIN bus connection.

Usage Example

-- Load the LIN bus extension
extensions.load("tech/LINBus/LINBusPeak")

if extensions.tech_LINBus_LINBusPeak.isConnected then
  log("I", "LIN", "PLIN adapter connected")
end

See Also

  • CAN Bus (PCAN) — CAN bus interface (same PEAK hardware)
  • TechCore — External research API

Damage Evaluation

Analyzes vehicle crash damage by evaluating node displacements, beam breaks, and deformation energy. Provides quantitative crash severity metrics for safety research.

CSV Metrics

Test utility that exports vehicle metrics to CSV format for automated testing and validation pipelines. Provides structured output for CI/CD integration.

On this page

Public APIHooksUsage ExampleSee Also