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
Add To Inventory (Flowgraph Node)Career Vehicle Select (Flowgraph Node)Set Tutorial Step (Flowgraph Node)Complete Quest (Flowgraph Node)On Custom Tow (Flowgraph Node)Garage Computer Util (Flowgraph Node)Garage Tutorial Util (Flowgraph Node)Get Tutorial Step (Flowgraph Node)Get Tutorial Flag (Flowgraph Node)Logbook Entry (Flowgraph Node)Menu Closed (Flowgraph Node)On Garage Event (Flowgraph Node)On Intro Popup Career Closed (Flowgraph Node)On Poi Prompt Shown (Flowgraph Node)On Mission Start/Stop (Flowgraph Node)On RefuelingOn Testdrive ChangedOn Vehicle Shopping EventAdd Or Remove Player AttributeSet Fuel LevelSet Tutorial FlagTasklist HeaderVehicle Group by Performance Class

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 Extensionsflowgraphnodescareer

On Vehicle Shopping Event

- **Name:** `On Vehicle Shopping Event`

Overview

  • Name: On Vehicle Shopping Event
  • Category: repeat_instant
  • File: lua/ge/extensions/flowgraph/nodes/career/onVehicleShoppingEvent.lua
  • Pattern: Class-based (C = {}, returns _flowgraph_createNode(C))

Description

Detects various events during the vehicle shopping flow in career mode: menu open/close, vehicle spawn for inspection, detail view open, purchase completion, and test drive state.

Pin Schema

Output Pins

PinTypeDescription
openedMenuflow (impulse)Fires once when the shopping menu opens
closedMenuflow (impulse)Fires once when the shopping menu closes
vehicleSpawnedflow (impulse)Fires once when a vehicle is spawned for inspection
openedDetailflow (impulse)Fires once when the detailed purchase menu opens
vehicleBoughtflow (impulse)Fires once when a vehicle purchase is complete
vehIdnumberVehicle ID of the purchased vehicle
testDriveActiveboolWhether a test drive is currently active

Behavior

  • work() resets all impulse flow pins, applies queued flags, clears them, then reads live test drive state from career_modules_testDrive.isActive().
  • Hook callbacks queue flags: onVehicleShoppingMenuOpened, onVehicleShoppingVehicleShown, onVehicleShoppingPurchaseMenuOpened, onVehicleAddedToInventory, onVehicleShoppingMenuClosed.
  • onVehicleAddedToInventory also resolves the vehicle ID via career_modules_inventory.getVehicleIdFromInventoryId().
  • onUIPlayStateChanged(enteredPlay) triggers closedMenu when entering play state.

Key APIs Used

  • career_modules_testDrive.isActive()
  • career_modules_inventory.getVehicleIdFromInventoryId()

Tags

#flowgraph #node #ge #career #shopping


Additional Exports

init()

  • name - string - (see source)

  • description - string - (see source)

  • color - any - (see source)

  • icon - any - (see source)

  • category - string - (see source)

  • pinSchema - table - (see source)

  • dependencies - table - (see source)


See Also

  • Add To Inventory (Flowgraph Node) - Related reference
  • Career Vehicle Select (Flowgraph Node) - Related reference
  • Set Tutorial Step (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

On Testdrive Changed

- **Name:** `On Testdrive Changed`

Add Or Remove Player Attribute

- **Name:** `Add Or Remove Player Attribute`

On this page

OverviewDescriptionPin SchemaOutput PinsBehaviorKey APIs UsedTagsAdditional Exportsinit()See Also