RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. _SET_TRAIN_COLLISION_AVOIDANCE_ENABLED

_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 void

Parameters

NameTypeDescription
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

On this page

  • Signature
  • Parameters
  • Usage
  • Details