===================================================
SCRIPT HAS BEEN RE-WORKED (Jan 2nd 2024) ! PLEASE READ THIS FIRST!!
===================================================
Officially I don’t maintain this script at all anymore, but the person whom took over
to ‘finish it’, also seems to have left FiveM modding. And since I noticed quite some
comments, questions etc on this topic lately again, I decided to give it ONE FINAL update.
It is basically now ‘released as-is’ and will not be updated anymore due to a major lack
of time for gaming related projects on my side the last couple of years.
So that this one has been updated does NOT mean “I’m back for more” haha, I just wanted to
help out the folks whom are still trying to use this trains system, and hope this ‘reworked’ version
helps them a bit.
Q: Does it work with OneSync/Infinity?
A: NO CLUE! Honestly… But I don’t expect it to do though! I have been ‘away from FiveM’ for years now and haven’t dived into that stuff at all. I just tested it a few minutes ago with a bare minimum FX server and is seems to be doing what it needs to do. It might still contain some bugs but the code is now very simplistic, and has LOTS of comments in it, so you should be able to adapt it to your own needs now
Q: Will you make it compatible for Infinity/OneSync etc etc?
A: No, sorry I won’t. Again: Lack of time
Q: But if you released/updated it again, then you HAVE to maintain it again right?
A: NO I don’t. To say it a bit harsh: I have more important things going on in life at the moment
than focusing on video games, and I have stated in advance that It’s not actively supported.
Don’t like that? Don’t use it FiveM doesn’t like that? Also fine, just remove the post then
I just wanted to help out once more because everybody else seemed to have ditched the project, but that doesn’t mean that I have time for scripts like these again, sorry. Just hope this update helped out some people now
Have a happy new year
===================================================
First post and directly a release - Introduction
Hi all, and first of all: What a wonderful and useful community
Daytime programmer/hardware developer and in my spare time like to expand my knowledge,
and skill sets by making random project, varying from robotic to game development, including
texture design, game scripting etc. Had a longtime running SA-MP server and decided to move
on to something ‘a bit newer’ now haha. And now i have decided to upload my version of trains
since it turned out much more ‘extensive’ than I had initially anticipated (or planned), and hope
that it will be useful for others to use, or even ‘just to learn’ or ‘take snippets’ from
What is it
It’s a complete re-make add-on based-on (well inspired on more now haha):
(Yes i do have (written) permission from @Blumlaut )
I got a request from our (closed server) players to ‘re-enable’ the trains,
so I downloaded the addon from @Blumlaut and thats where it ‘escalated’ haha.
What does it offer
- Spawns/Activates the NATIVE GTA/FiveM trains on the ‘normal game tracks’
- Passenger system for the Metro’s (NO player limit!)
- Players can walk around IN the Metro train
- Players need to purchase a ticket at one of the underground Metro stations or at the airport
- Ticket will invalidate when used (players need to buy a new one)
- SMS Style notifications when boarding or buying
- SMS Style Bank error when player doesn’t have enough money (even bank brand can be setup)
- If you enter a train without having a ticket, you will get a warning to leave, followed by a 1 star wanted level if you don’t leave the train/metro
- ‘Terrorist Detection’ when player is shooting from the metro (resulting in 4 star wanted instantly)
All interaction are done as ‘normal game interaction’ would have been done (in normal online or
single player), no need to type commands or console/chat shortcuts
The ticket machine has animations (using ATM animation for it)
Nearly all options (allowed to enter when wanted, ‘terrorist detection’, Banks Brand sms icon/style, ticket price, number of metro’s to spawn (1 or 2) can easily be configured with variables i’ve created
at the top of the script.
The script is HEAVILY commented so that it should be easier for most to understand what happens
where and how (which would also make it a bit more suitable for beginners i guess)
- Known “issues/bugs”
- The ‘old messed up’ ticket machines above ground don’t work (see screenshot)
I could not find that model in the game files after many hours of searching, if someone has/knows
the model file I could update it if requested - The Metro doors ‘disappear’ when a player enters it as passenger (fully see through) i suspect that
this is a game/model limitation.
What does the script user/server owner need to do
PLEASE READ THIS PART: You will need to implement your OWN money/bank handling part.
In which i mean that you will need to make sure that the money gets taken from either the
bank account or cash money. Reason for this is that many servers use different banking systems,
just like mine does. So i did not implemented the ‘take money away from player’ part.
However I have (very detailed) explained exactly in my code where (and a bit how) you can
add those parts
Expected Questions
I expect some questions like: Can you make the trains so we can drive them?
Short answer is “Yes”… BUT… it turned out not to be stable or smooth (jumpy trains and such),
and it caused de-syncing. However several of these questions I have already replied to and explained
in the readme file of my source/release
Here are some screenshots of the Add-on:
Arriving Metro at the station (Note: Ped’s will NOT get in)
Shooting from the Metro (on public transport) is considered to be an terrorist act
(is configurable if you want this or not)
The Freight train
This is the Ticket Machine Model which does NOT work (yet) since i just can’t find the model name
for it. have found one model name but that one doesn’t respond in my scan, so i suspect it’s a different model.
Where to download:
My Github Page
Anyway,
Hope it will be useful, interesting and well received
Kind Regard,
VenomXNL