RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Align For CouplingApply Velocity to VehicleBoost VehicleSet Vehicle ColorsCustom Parts Config ProviderEnter VehicleFlip UprightFreeze VehicleGenerate License PlateGet Vehicle ActiveGet Electrics ValueGet GearboxmodeGet Powertrain DataGravity ForceDistance From GroundHas Coupler TagIs CoupledIs Player UsableKeep VehicleMove Vehicle ToOn Cannon FiredOn Vehicle DestroyedOn Vehicle ResetOn Vehicle SpawnedOn Vehicle SwitchedPlayer UsableRandom Config ProviderRecover In PlaceRemove VehicleTimeline ReplaySet Vehicle ActiveSet Gearbox ModeSet IgnitionSet License PlateSet LightbarSet LightsShift to Gear IndexSpawn VehicleVehicle StatesTeleport To Last RoadToggle Vehicle ControlsMove To ShowroomVehicle TouchProps TouchStatic Object TouchTrack VehicleTrailer Respawn ControlVehicle Config ProviderGet Vehicle DataGet Vehicle DataGet Vehicle BoundsVehicle PingGet Vehicle Wheel Center

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 ReferenceGE Extensionsflowgraphnodesvehicle

Has Coupler Tag

- **Node Name:** `Has Coupler Tag`

Overview

  • Node Name: Has Coupler Tag
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/vehicle/hasCouplerTag.lua

Detects whether a vehicle has specific coupler tags (tow hitch, fifth wheel, gooseneck, pintle). Outputs a boolean for each supported coupler type.

Pin Schema

Input Pins

PinTypeDescription
vehAnumberID of the vehicle to check

Output Pins

PinTypeDescription
tow_hitchboolTrue if the vehicle has a tow hitch coupler
fifthwheelboolTrue if the vehicle has a fifth wheel coupler
gooseneck_hitchboolTrue if the vehicle has a gooseneck hitch coupler
fifthwheel_v2boolTrue if the vehicle has a fifth wheel v2 coupler
pintleboolTrue if the vehicle has a pintle coupler

Internals

Supported Coupler Tags

tow_hitch, fifthwheel, gooseneck_hitch, fifthwheel_v2, pintle

Key Methods

MethodDescription
_executionStarted()Initializes all coupler output pins to false
work()Gets the vehicle data from the flowgraph vehicle module and checks vehA.couplerTags[tag] for each tag

How It Works

  1. On execution start, all output pins are set to false.
  2. Each frame, the node retrieves vehicle data via self.mgr.modules.vehicle:getVehicle(vehId).
  3. For each known coupler tag, it checks the vehicle's couplerTags table and outputs true or false.

Usage Example

-- In a flowgraph:
-- [Has Coupler Tag] ← vehA ← [Vehicle ID]
--   → tow_hitch → [Branch: Can Tow]
--   → fifthwheel → [Branch: Can Haul Semi]

-- The couplerTags table on a vehicle module entry:
-- veh.couplerTags = { tow_hitch = true, fifthwheel = false, ... }

Key Dependencies

  • self.mgr.modules.vehicle:getVehicle() - retrieves vehicle data including coupler tag information from the flowgraph vehicle module

See Also

  • Align for Coupling (Flowgraph Node) - Related reference
  • Apply Velocity to Vehicle (Flowgraph Node) - Related reference
  • Boost Vehicle (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Distance From Ground

- **Node Name:** `Distance From Ground`

Is Coupled

- **Node Name:** `Is Coupled`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsSupported Coupler TagsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also