API ReferenceGE Extensionsflowgraphnodesgameplaytraffic
Set Traffic Vehicle Data
**File:** `flowgraph/nodes/gameplay/traffic/setVehicleData.lua`
File: flowgraph/nodes/gameplay/traffic/setVehicleData.lua
Description: Sets parameters for an individual vehicle currently active as traffic.
Category: once_instant Tags: traffic, ai, mode, settings, parameters
Input Pins
| Name | Type | Description |
|---|---|---|
vehId | number | Vehicle id. |
role | string | Class or role of the vehicle (standard, police, service, etc.). |
enableRespawn | bool | Enables or disables respawning for the vehicle. |
enableTracking | bool | Enables or disables tracking of driving stats, offenses, and police interactions. |
enablePoolCycle | bool | Enables or disables hiding the vehicle in the vehicle pool. |
enableActions | bool | Enables or disables automatic AI changes based on role. |
changePaint | bool | Enables or disables automatic color changes for the vehicle. |
Methods
C:init()C:workOnce()
See Also
- Add Vehicle (Traffic) - Related reference
- Traffic Driving Stats - Related reference
- File Vehicle Group - Related reference
- FlowGraph Guide - Guide