Jim-Trains

Current Version
1.5
Known issues
After testing in a high population 150+ player server, the syncing can start to become and issue
For example out of no where a metro train will go 100mph, I believe its "trying to catch up" for that player
If anyone knows how to integrate a fix into the script, I'm not sure if its server lag or player lag or both, feel free to pull request a fix for it
FiveM NPC Train script
First of foremost this is not a script to allow players to ride trains, it does its best to prevent that
This script enables the natives to make trains spawn natrually in your server
When the players load in, it preloads the models and lets the game engine do its work
It also allows for blips for the stations to be created
(Optional) Makes trains also require a ticket before entering it, purchasable from ticket machines at stations
(Optional) Allows players to sit in the trains when travelling, making "G" the key to press to get off at next station
It also makes freight trains spawn in your server and attempts to control stopping them at certain stations
Supports:
QB-Core
ESX
QBOX
OX_Core
Last updated