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

Set Vehicle Active

- **Node Name:** `Set Vehicle Active`

Overview

  • Node Name: Set Vehicle Active
  • Category: once_instant
  • File: extensions/flowgraph/nodes/vehicle/setActive.lua

Sets the active (visible/invisible) state of a vehicle. When inactive, the vehicle is hidden from the scene.

Pin Schema

Input Pins

PinTypeDescription
vehIdnumberID of vehicle to set visibility for. If empty, uses player vehicle
activeboolVisibility state - true = visible, false = invisible

Internals

Key Methods

MethodDescription
workOnce()Resolves vehicle and calls setActive() on it

How It Works

  1. Looks up the vehicle by vehId using getObjectByID(), or falls back to getPlayerVehicle(0).
  2. Calls obj:setActive(1) to make the vehicle visible, or obj:setActive(0) to hide it.
  3. The boolean pin value is converted to 1/0 via self.pinIn.active.value and 1 or 0.

Usage Example

-- In a flowgraph - hide a vehicle:
-- [Vehicle ID] → [Set Vehicle Active].vehId
-- [Bool: false] → [Set Vehicle Active].active

-- Direct Lua equivalent:
local obj = getObjectByID(vehId)
obj:setActive(0)  -- hide
obj:setActive(1)  -- show

Key Dependencies

  • getObjectByID() - resolves object by numeric ID
  • getPlayerVehicle(0) - gets the current player vehicle
  • obj:setActive(int) - engine method to show (1) or hide (0) an object

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

Timeline Replay

- **Node Name:** `Timeline Replay`

Set Gearbox Mode

- **Node Name:** `Set Gearbox Mode`

On this page

OverviewPin SchemaInput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also