API ReferenceGE Extensionsflowgraphnodesgameplaytraffic
Get Traffic Vehicle Data
**File:** `flowgraph/nodes/gameplay/traffic/getVehicleData.lua`
File: flowgraph/nodes/gameplay/traffic/getVehicleData.lua
Description: Gets parameters for an individual vehicle currently active as traffic.
Category: repeat_instant Tags: traffic, ai, mode, settings, parameters
Input Pins
| Name | Type | Description |
|---|---|---|
vehId | number | Vehicle id. |
Output Pins
| Name | Type | Description |
|---|---|---|
role | string | Class or role of the vehicle (standard, police, service, etc.). |
state | string | Traffic state of the vehicle. |
camVisible | bool | Is true if the game camera can see the vehicle. |
crashDamage | number | Maximum amount of damage recorded in a short time. |
respawnCount | number | Number of times the vehicle has respawned. |
Methods
C:work()
See Also
- Add Vehicle (Traffic) - Related reference
- Traffic Driving Stats - Related reference
- File Vehicle Group - Related reference
- FlowGraph Guide - Guide