max_trains
This script adds a fully working train and metro system to any server! It supports any framework!
This is the one time purchase version, for the subscription option check here:
https://maxgestic.tebex.io/package/5635735
Features:
- Drive Metros, Freight and Passenger Trains though Los Santos
- Passengers will be able to enter both the Metro and the normal Train
- For the Metro players will be able to enter the carriage and then sit down (Walking around freely is bad due to desync)
- In the Train carriage players will be placed in a seat and can switch seats freely
- Fully driver controllable doors on Metro
- Collision Detection to prevent Trains running into each other when there is track congestion, system knows if there is a train ahead and will stop any trains behind from getting to close
- Ticket System
- Locked Spin gates at all subway stations that only allow passthrough if player has a ticket
- Train Driver/Metro Driver Job
- Map Icons for all Metro and Train Stations
- 911 System that can be configured to call the police if someone without a ticket is on a train
- Fully customizable amount of train variations with complete support for custom models and length/amount of carriages
- Support for either NativeUI or ox_lib menus
- Support for ox_target
Updates:
Update Version 1.1.1:
- Added Localisation Configuration file to allow full custom language support
Update Version 1.1.0:
- Added fully configurable station system
- Drivers will have to stop at stations for a configurable amount of time
- Passengers and Drivers will get alerts of the upcoming station when they get close
- Drivers will get strikes and get fired from driving trains if they reach a configurable amount of strikes
- Drivers will see a indicator of their next station, that will change to current station if stopped and also indicate in colour if they have stayed for long enough
- Added NPC passenger system
- NPC’s will now spawn that will board the train’s driven by players
- System is randomized so NPCs will have different models, max amount of NPCs per station, spawn locations, target platforms and carriages they will sit in
- You can configure how many max NPCs will spawn at each in game hour (for example only 2 at 4am but at 9am a max of 8 can spawn)
- Ped Models of NPC’s that can spawn can be configured
- NPC passenger system can also be fully disabled
- NPCs will walk to train for Metro system (they cant do this with train system since the platforms all do not have nav-meshes)
- Train driver will see on their screen how many NPCs are currently making their way onto the train
- Once the NPC gets to their random target station they will walk to a configurable exit and then de-spawn
- Added option to have map blips include name of stations
- Made switching seats better (now there is a cooldown so the fading screen doesnt bug out anymore)
- Bug Fixes
- Added some more comments and stuff to config files
- Split up server and client files into sperate files to make development more efficient
Config Files:
This script is encrypted using asset escrow system, however is highly configurable via different config files:
https://github.com/maxgestic/max_trains_public_files
Installation:
- If purchased make sure to download both the "Required Resources.zip" from Tebex Email and the "max_trains.pack.zip" from keymaster.
- Drop everything in resources folder
- Add following to server.cfg:
ensure ox_lib
ensure ox_target
ensure trains
ensure trainstations
ensure max_trains
Screenshots:






Refund Policy
Any customer can request a refund though the support discord, and I will take all aspects of the situation into account and make a decision if a refund will be issued. My personal policy is always I'd rather spend some time helping you fix an issue that can be resolved easily. However if there is something that can't be fixed or the purchase for example was made accidentally I will consider giving a refund. TLDR; I take the right to decide if a refund will be issued on a case by case basis.