_SET_TRAIN_COLLISION_AVOIDANCE_ENABLED
Enables or disables collision avoidance behavior for AI-controlled trains. When enabled, the train will automatically stop if an obstacle or possible collision is detected ahead on the track. When disabled, the train will continue moving without reacting to obstacles
VEHICLEBuild 1207
Signature
lua
SetTrainCollisionAvoidanceEnabled(GetVehiclePedIsIn(PlayerPedId(), false), true)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Vehicle | — | |
| BOOL | — |
Usage
lua
SetTrainCollisionAvoidanceEnabled(GetVehiclePedIsIn(PlayerPedId(), false), true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
