API ReferenceGE Extensionsflowgraphnodescareer
Career Vehicle Select (Flowgraph Node)
- **Node Name:** `Career Vehicle Select`
Overview
- Node Name:
Career Vehicle Select - Behaviour:
once = true,singleActive = true - File:
extensions/flowgraph/nodes/career/careerVehicleSelect.lua
Presents a UI menu letting the player pick between 3 vehicles. Supports test-driving and final selection.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
flow | flow | Inflow to trigger the menu |
reset | flow (impulse) | Resets the node |
description | string/table | Subtext for the menu |
veh[1-3]image | string | Vehicle image path |
veh[1-3]name | string | Vehicle display name |
veh[1-3]brand | string | Vehicle brand |
veh[1-3]desc | string | Vehicle description |
veh[1-3]testDisabled | bool | Disable test drive button |
Output Pins
| Pin | Type | Description |
|---|---|---|
test1–test3 | flow | Fires when vehicle N is selected for test drive |
pick1–pick3 | flow | Fires when vehicle N is picked |
Behavior
work()- Onflow, opens the vehicle selection dialogue viaguihooks.trigger('ChangeState', {state = 'menu.careerVehicleSelect', ...}).buttonPushed(action)- Called from the UI via generated Lua commands. Sets the matching output pin.resetimpulse closes the dialogue and resets all output pins._executionStopped()- Closes dialogue if open.
Dependencies
core_input_bindings
Notes
- Uses
guihooks.triggerto open a dedicated Vue/CEF UI state. - Button callbacks are generated Lua strings executed by the UI:
core_flowgraphManager.getManagerGraphNode(mgr, graph, node):buttonPushed("action").
See Also
- Add To Inventory (Flowgraph Node) - Related reference
- Set Tutorial Step (Flowgraph Node) - Related reference
- Complete Quest (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide