if you're trying to do this modification in original game i don't think it's a good idea as the passengers will go out on the rail track , and this will eventually lead to crash . if you're doing a custom map then i never heard of such tweak and thus don't know how to do the trick