Trains (Overhauled Edition)

<< BACK TO SCRIPTS

Trains (Overhauled Edition)

Current Version: 2.53
Stand-Alone

Customizable trains that can be AI driven OR Player driven. Metro, Passenger, Freight. Job RP possible

Job possibility for passenger trains. As players get on the train, the driver gets paid from the players (money framework required).

Uses the OVERHAULED TRAINS by Walter who graciously allowed us to use his trains. You are not buying his trains with this script. Those come with the script for free. If you just want his trains you can get them for free here

You can use the Big Daddy created custom liveries with real-world companies and brands on engines, box cars, rack cars, passenger trains or you can use the lore friendly liveries that come with Overhauled Trains or you can create your own liveries for your server (all templates are included).

NEW FEATURES

  • Emergency Brake - you can come to a screeching halt in a shower of sparks using the brake for cars or people or animals or whatever on the track.
  • Derailment - driving a train too fast around corners could cause derailments. You can also trigger a derailment manually if you wanted to RP that. Train goes all wonky and comes to a shrieking stop in a shower of sparks.
  • Passenger Trains are RIDEABLE - players can actually ride on passenger trains now (only using the custom version of the passenger cars that we fixed to work with riders).
  • ALL NEW liveries included with real-world companies. Also comes with all the templates to make your own.
  • New Spawner - allows you to either spawn a random consist or pick one and spawn it directly.
  • You can also edit the train config and create your own consists with whatever cars you want within the Overhauled Trains set. (SEE BELOW FOR WARNINGS)

Be sure to read ALL of the following and the documentation before purchasing so you know exactly what you are getting and how it all works.

Metros and Buying Tickets 

The AI driven trains spawn via the game engine based on where players are on the map. If you have the map blips turned on, the brighter red Ms on the map are where working ticket machines are located. The red and black machines work but the blue and green machines do not. 

Passenger Trains & Making Money Driving 

If you spawn a passenger train and drive it around the map... when you stop and open the doors, players can go into the door and will be seated on the train and a payment will be made from that player to the driver of the train (money framework must be enabled for that to happen). The amount is set in the settings.ini file for passengerTicketPrice. Pressing [F] as the passenger when the train is stopped will allow you to get off of the train. 

ONESYNC ISSUES 

The fact that onesync hates trains is very well known and I've mentioned it so many times along the way. If you use the AI spawned trains they WILL work... and you WILL have onesync mess with them. What you can expect: the more people you have on and the more often the trains spawn, the more the despawn will get desynced. That means it will despawn part of the train instead of all of it and leave orphan cars left behind. Sometimes the script can clean these up and sometimes the client doesn't even know they are there so they can't be removed. They have no collision so other trains will go right through them but they are there, sometimes moving around. The metro trains will hang around and honk that annoying horn when they get desynced. If you have a lot of people on it can get very annoying. I put this here so you will know that it will happen and so far no one has ever figured out a fix. I've got them working as well as I've ever seen them work but there are still some issues. 

EDITING CONSISTS 

Question: Can you edit the trains.xml file and change the train layouts? Yes. 

I have made that as easy as I can for you but please read below before deciding to do it. If you do not know how the trains.xml file works, don't edit it. I know you will anyway, so read on. If you choose to edit the file make a backup of the original because if you edit the file and your script crashes or stops working, we WILL NOT SUPPORT the script if you have made changes to the xml file and broke it. 

Question: Can there be more than 10 cars? NO 

OneSync says no to that. You can put as many as you want but 10 or less will be seen by everyone but you and the train will freak out on other player's screens. Sometimes they will see more than 10 but they will be glitched out and tornado and do all kinds of crazy things. 10 cars always works, more never works correctly. We tried it. You've been warned. 

Question: Can we use our own custom train models? NO 

The only train models that will work with this version of the script is the Overhauled Trains that is included with it. Anything else will crash the script. 

Question: Can we change/customize the liveries on the trains? YES 

Please do what you want to the trains included. I've done IRL liveries for some of the models or you can revert them to the basic lore friendly versions that were there originally or you can create your own. The templates are included to skin them to your heart's content. In fact, come to the discord and post screenshots in the screenshots channel. I'd love to see them.

Question: What if we already have overhauled trains in our server? Easy...

You just remove the trains folder from the stream folder in this script. If you are already streaming the trains, you don't have to stream them again.


NOTE: For the custom passenger cars to work, do not replace them with the original Overhauled Trains passenger cars or you will not be able to ride in them anymore.


CREDITS: Overhauled Trains were originally created by Walter and he graciously gave us permission to use them here. He doesn't mess with FiveM/GTA anymore so please don't go bother him with questions and stuff. The hobo box car and Amtrak passenger cars were modified by Steve @ KickapooKustoms so you could ride in them. There have been a lot of people doing FiveM train stuff over the years, Blumlaut, The Nickoos, The Indra, VenomXNL, etc. and I have learned from what they did. I've been working on and tweaking this script for almost two years now. It's got trains working as well as I've seen them work although FiveM and OneSync will never have perfect trains for sure.


MORE INFO COMING...

DOCUMENTATION
Available soon