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
Get Custom Vehicle ValueCustom vlua - deprecatedCustom Vehicle LuaVehicle ActionWheel Distance

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 Extensionsflowgraphnodesvehiclespecial

Custom vlua - deprecated

- **Node Name:** `Custom vlua - deprecated`

Overview

  • Node Name: Custom vlua - deprecated
  • Category: repeat_p_duration
  • File: extensions/flowgraph/nodes/vehicle/special/customVlua_string.lua

Obsolete - replaced by the Custom Vehicle Lua node (customVlua.lua). Sends a custom Lua string to a vehicle's Lua environment. Only works when a vehicle ID is explicitly provided.

Pin Schema

Input Pins

PinTypeDescription
customLUAstringThe Lua code string to execute. Note: cannot start directly with a number
vehIdnumberID of the vehicle to apply Lua code to

Legacy Pin Mapping

  • in.vehID → vehId

Internals

Key Methods

MethodDescription
init()Attempts to set data.func from pin value (likely a leftover)
work()Resolves vehicle by ID and sends the Lua command

How It Works

  1. On each tick, resolves the vehicle by vehId using scenetree.findObjectById().
  2. Unlike the newer Custom Vehicle Lua node, this only works when vehId is explicitly provided - there is no player vehicle fallback.
  3. If the vehicle is found, sends customLUA string via veh:queueLuaCommand().
  4. If no vehicle is found, returns early without doing anything.

Migration

This node is marked obsolete. Use Custom Vehicle Lua (customVlua.lua) instead, which:

  • Supports player vehicle fallback
  • Has proper legacy pin migration
  • Outputs vehicle ID
  • Has cleaner serialization

Usage Example

-- Deprecated - use Custom Vehicle Lua instead.
-- Old flowgraph:
-- [String: "electrics.setLightsState({hazard_enabled = 1})"] → [Custom vlua].customLUA
-- [Vehicle ID] → [Custom vlua].vehId

-- New equivalent:
-- [String: same] → [Custom Vehicle Lua].func
-- [Vehicle ID]   → [Custom Vehicle Lua].vehId

Key Dependencies

  • veh:queueLuaCommand(luaString) - sends arbitrary Lua to the vehicle environment
  • scenetree.findObjectById() - resolves vehicle by ID

Previously Undocumented (Added by Audit)

  • Input Pin: customLUAString (any)

See Also

  • Get Custom Vehicle Value (Flowgraph Node) - Related reference
  • Custom Vehicle Lua (Flowgraph Node) - Related reference
  • Vehicle Action (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Get Custom Vehicle Value

- **Node Name:** `Get Custom Vehicle Value`

Custom Vehicle Lua

- **Node Name:** `Custom Vehicle Lua`

On this page

OverviewPin SchemaInput PinsLegacy Pin MappingInternalsKey MethodsHow It WorksMigrationUsage ExampleKey DependenciesPreviously Undocumented (Added by Audit)See Also