_SET_TRAIN_COLLISION_AVOIDANCE_ENABLED
Enables or disables collision-avoidance behavior for AI-controlled trains.
0xE6BD7DD3FD474415SetTrainCollisionAvoidanceEnabledSignature
void _SET_TRAIN_COLLISION_AVOIDANCE_ENABLED(Vehicle train, BOOL toggle);Parameters
| Name | Type | Description |
|---|---|---|
train | Vehicle | — |
toggle | BOOL | — |
Returns void
Description
Enables or disables collision-avoidance behavior for AI-controlled trains.
When enabled, the train can automatically stop if an obstacle or possible collision is detected ahead on the track. When disabled, it continues moving without reacting to those obstacles.
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
Usage
SetTrainCollisionAvoidanceEnabled(train, toggle)
-- always works, by hash
Citizen.InvokeNative(0xE6BD7DD3FD474415, train, toggle)JavaScript and C#
SetTrainCollisionAvoidanceEnabled(train, toggle);
// by hash
Citizen.invokeNative('0xE6BD7DD3FD474415', train, toggle);Function.Call((Hash)0xE6BD7DD3FD474415, train, toggle);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.