Open the downloaded ZIP product file and drop the folder in it somewhere in your resources folder. Add your product key (get it here) to the settings.ini
file and add start BigDaddy-Trains
to your server.cfg
.
DO NOT RENAME THE FOLDER.
If you change the name of the folder it will not function correctly so leave the name as it is.
VERY IMPORTANT NOTICE: PLEASE READ
This script uses the gta5.meta replace function. You can only use this once per server or they will overwrite each other. If you have other resources using this function (it's becoming more common in some big MLOs now) you will need to combine the changes in all gta5.meta files from all resources using it and put them into one file and load it once.
Here is how to setup the script for success. When you contact us for support be sure to mention GET BIT so we know you've read this.
See the server.lua file and make sure you have the money framework selected that you use or enter "custom" for the framework to bypass. There are options for NAT (old and new version), QBCore, ESX, ND, BigDaddy... and if you have another framework there is a spot to put your own implementation. We will not do that for you, that will be up to you and your devs.
SETTING | DEFAULT | DESCRIPTION |
---|---|---|
[licensing] | ||
key1 | none | This is where you put your product key |
[settings] | ||
spawnMetro | true | if you want the Metro trains to auto spawn with AI drivers |
spawnFreight | true | if you want the Freight trains to auto spawn with AI drivers |
metroFrequency | 7 | how often to spawn Metro AI trains (too short and you get crazy OneSync issues more often) |
freightFrequency | 15 | how often to spawn Freight AI trains (too short and you get crazy OneSync issues more often) |
allowDriving | true | allow spawning and driving of trains by players (setting this to true disables the auto spawning of AI trains) |
ticketPrice | 25 | how much a ticket to ride the Metro costs |
passengerTicketPrice | 75 | the price to ride the passenger trains, goes to driver |
showTrainBlips | true | show the Metro stops as blips on the map |
useMoney | true | if you want to tie with to a money framework (set it up in the server.lua) |
These are fallback values and not really used anymore. | ||
metroTrainIndex | 16 | |
freightTrainIndexes | 2,15 | |
passengerTrainIndexes | 0,1 | |
disableAutoIndexing | false | This is for debug purposes and should only be changed if asked by Big Daddy |
riskChance | 20 | the percentage chance a derail or fire will happen under the right circumstances. Set to 0 (zero) to disable those. Valid numbers are 0 - 100 |
customTrains | true | DO NOT CHANGE THIS or you WILL break the resource. It is for internal use only |
MPH | true | setting this to false changes the screen to display km/h instead |
[locales] | ||
hasTicket | You have a ticket and may enter the metro | |
currentStation | Current Station | |
nextStation | The next station is | |
noPassenger | No passenger trains available in the standard version of this script | |
invalidTrain | Invalid train type | |
DO NOT change the INPUT_CONTEXT because you'll break ticket purchases | ||
toBuyTicket | toBuyTicket=Press INPUT_CONTEXT to buy a metro ticket | |
alreadyHaveTicket | You already have a ticket to ride, go get on a train | |
alreadyHaveTicket2 | You already have a valid Metro Ticket, please go to one of the stations and board the Metro | |
information | Information | |
thankYouRide | Thank you for riding with LSTI today | |
invalidateOnExit | When you exit the metro your ticket will be voided | |
noTicket | You do not have a ticket to ride the metro. Please exit and purchase a ticket | |
trainSpeed | Train Speed |
AI DRIVEN OR PLAYER DRIVEN... not both
if you set allowDriving=true in the config, the AI spawned trains will not spawn. You cannot have AI spanwed and Player spawned turned on at the same time for obvious reasons.
Get near track you want the train to be on... be aware that trains will spawn on any track even if it is the wrong track for that train. Some tracks in the game are not complete tracks and the train will drive on them but can and will do some crazy things.
/train freight
spawn freight train to drive
/train metro
spawn metro train to drive
/train passenger
spawn passenger train to drive
/train #
# = the index of the train you want to spawn
/deletetrain
delete train that you have spawned (be nice, don't leave your toys out)
/derail
this will derail your train (if you are moving) which causes it to go all wonky and stop in a shower of sparks. It is not driveable after this happens. It will be there until you delete it.
[spacebar]
pressing the [spacebar] while the train is moving activates the emergency brake. The train will lock up and come to a stop in a shower of sparks. Once stopped, you can begin to go again.
Fast Driving
If the train is going too fast around a corner or even on a straight, there is a change it will derail.
Derail and Emergency Brake
When the train comes to a stop with sparks, there is a chance it will catch fire.
The UP arrow and DOWN arrow increase and decrease the throttle while driving. [F] will get you out of the train while it's stopped. [F] will put you back into the train if you are out. NUMPAD4 opens the leftside doors (sometimes this is reversed on same models) and NUMPAD6 opens the rightside doors (sometimes this is reversed on same models) to the metro/passenger train while stopped.
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.
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.
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 to other trains so you'll 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.
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.
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.
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.
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.