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
ARunForLife (Flowgraph Node)Clear Lights Drag Race (Flowgraph Node)Countdown Lights Controller (Flowgraph Node)Get Custom Vehicle Data (Flowgraph Node)Get Mission Setup Data (Flowgraph Node)Check Players Position / Go To Start Line (Flowgraph Node)KnockAway Check (Flowgraph Node)Lights Controller (Flowgraph Node)Mission Post Clean (Flowgraph Node)Mission Cleanup / Pre Clean (Flowgraph Node)Prepare Vehicle (Flowgraph Node)Remove Stashed Player Vehicle (Flowgraph Node)Select Garage Vehicle (Flowgraph Node)Select Garage Sites / Zones (Flowgraph Node)Select Garage Spots (Flowgraph Node)Select Heist Spots (Flowgraph Node)Set Stage Lights (Flowgraph Node)Update Display Drag Race (Flowgraph Node)

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 Extensionsflowgraphnodesmission

Prepare Vehicle (Flowgraph Node)

- **Node Name:** `Prepare Vehicle`

Overview

  • Node Name: Prepare Vehicle
  • Category: once_instant
  • File: extensions/flowgraph/nodes/mission/prepareVehicle.lua
  • Color: Mission blue (0.13, 0.3, 0.64, 0.75)

Automatically sets vehicle electrics and values appropriate for the gameplay environment. Runs once instantly.

Pin Schema

Input Pins

PinTypeHiddenDescription
vehIdnumberyesVehicle ID to prepare; defaults to current player vehicle

Output Pins

None.

Internals

  • Delegates to self.mgr.modules.mission:prepareVehicle(id).
  • Falls back to be:getPlayerVehicleID(0) if no vehId is provided.

How It Works

  1. Resolves the target vehicle ID from the input pin or the current player vehicle.
  2. Calls the mission module's prepareVehicle method, which configures electrics (lights, ignition, etc.) and other vehicle values for mission gameplay.

Lua Code Example

-- Place after vehicle spawn in a mission flowgraph:
-- spawnVehicle → prepareVehicle (vehId from spawn output)
-- Or without vehId to prepare the current player vehicle:
-- missionStart → prepareVehicle

Key Dependencies

  • self.mgr.modules.mission - prepareVehicle() method
  • be:getPlayerVehicleID(0) - fallback player vehicle ID

Additional Methods

C:workOnce()

Called once when the node is triggered (flow-once execution).


See Also

  • ARunForLife (Flowgraph Node) - Related reference
  • Update Display Drag Race (Flowgraph Node) - Related reference
  • Clear Lights Drag Race (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Mission Cleanup / Pre Clean (Flowgraph Node)

- **Node Name:** `Mission Cleanup`

Remove Stashed Player Vehicle (Flowgraph Node)

- **Node Name:** `Remove Stashed Player Vehicle`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsHow It WorksLua Code ExampleKey DependenciesAdditional MethodsC:workOnce()See Also