{"hash":"0xE6BD7DD3FD474415","ns":"VEHICLE","name":"_SET_TRAIN_COLLISION_AVOIDANCE_ENABLED","slug":"_SET_TRAIN_COLLISION_AVOIDANCE_ENABLED","official":false,"named":true,"luaName":"SetTrainCollisionAvoidanceEnabled","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"train","type":"Vehicle"},{"name":"toggle","type":"BOOL"}],"summary":"Enables or disables collision-avoidance behavior for AI-controlled trains.","descriptions":[{"source":"alloc8or","format":"text","body":"Enables or disables collision-avoidance behavior for AI-controlled trains.\nWhen 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."},{"source":"vorp","format":"text","body":"Enables or disables collision avoidance behavior for AI-controlled trains.\n\nWhen enabled, the train will automatically stop if an obstacle or possible\ncollision is detected ahead on the track. When disabled, the train will\ncontinue moving without reacting to obstacles"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/_SET_TRAIN_COLLISION_AVOIDANCE_ENABLED","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/_SET_TRAIN_COLLISION_AVOIDANCE_ENABLED.md","snippets":{"lua":"SetTrainCollisionAvoidanceEnabled(train, toggle)","luaInvoke":"Citizen.InvokeNative(0xE6BD7DD3FD474415, train, toggle)","js":"SetTrainCollisionAvoidanceEnabled(train, toggle);","jsInvoke":"Citizen.invokeNative('0xE6BD7DD3FD474415', train, toggle);","csharp":"Function.Call((Hash)0xE6BD7DD3FD474415, train, toggle);","notes":["The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}