API ReferenceGE Extensionsflowgraphnodesgameplaytraffic
Get Vehicle Id From Table
**File:** `flowgraph/nodes/gameplay/traffic/getVehicle.lua`
File: flowgraph/nodes/gameplay/traffic/getVehicle.lua
Description: Gets a vehicle from an array of vehicle IDs (such as traffic) via an index.
Category: repeat_instant Tags: id, traffic
Input Pins
| Name | Type | Description |
|---|---|---|
vehicleIds | table | Array of vehicle IDs. |
index | number | Array index. |
Output Pins
| Name | Type | Description |
|---|---|---|
vehId | number | Vehicle Id. |
Methods
C:work()
See Also
- Add Vehicle (Traffic) - Related reference
- Traffic Driving Stats - Related reference
- File Vehicle Group - Related reference
- FlowGraph Guide - Guide