

Installation
curl https://github.com/Azerothwav/Az_train
Informations
Az_train is a complete train management script on FiveM, it allows you to have train garages, container inventories synchronized between all players and train robberies. All of this totally open source.
DLC
Somes DLC are avaible to add content on the script.
Robberies
The robberies are a point that makes the originality of the script, it will allow you to make your commercial crossroads dangerous if people decide to steal an important cargo, the associated commands to make the robberies are marked below. The bombs allowing to stop the train also allow to bring an important point for your server which is the demining of this one, create a branch LSPD or BSCO which will be able to deminer the bombs (finally a script which allows you to use the EOD of London script).
Commands
Here are the commands to know:
- /posebombtrain: to put a bomb on a track, if a train comes close to it it will derail and its containers will be accessible to all
- /removebomb: to remove the nearest bomb
- /rerail: to put your train back on the tracks
Pictures

26 Likes
SCRIPT ERROR: @Az_train/server/server.lua:43: attempt to index a nil value (global ‘file’)
I have this error and I don’t buy the trains
I am currently on the problem do not worry,
Sincerly, Azeroth
1 Like
The error is normally corrected and the quasar inventories are now normally compatible,
Sincerly, Azeroth
1 Like
Fabulous looking script!
We are making Customs services for my server, and we need all these kind of activities in link with merchandise, drugs etc. to get them some activities, you could do more of these 
Continue like that! 
1 Like
Thank you very much for your feedback, the script will probably have some errors at the beginning but I will correct them as soon as possible,
Sincerely, Azeroth
I think the concept are brilliant! However, I went and bought a Train, But at all 3 places these are my concerns… Feedback ?

Yes, the problem was also found, your street name is not the same as the one in the config, I invite you to do the command /getstationname to see the name of the station and replace it in the config in the bracket,
Sincerely, Azeroth
1 Like
That is a hell of a link you got there 
Cool script though
1 Like
Thank you (yes actually xD),
Sincerely, Azeroth
1 Like
Thank you very much
,
Sincerely, Azeroth
1 Like
Very sick 
For the Bombs, there is a way you could change the registercommand to an item ? Will be more RP !
And, I have idea,. So if you get out the train of your garage . You can’t reput back in the same garage directly after. You have to park in another train station to make it more RP and people just not using train as storage in on train station but they actually have to moove the train around the map
1 Like
Hello, the script is open source which gives you access to all the modifications you would like to make, as the script is standalone I avoid including features specific to each framework but I will surely make DLC emphasized on each framework,
Sincerely, Azeroth
yea right for the item, easy to do i will do, just im gonna try to figured out oh to not store in the same place just get out.
could you find a way to register the train whit license and not steam name
and you should use :
-
Don’t use:
GetPlayerPed(-1)
Use:
PlayerPedId()
im trying to figured out whit that
https://docs.fivem.net/docs/scripting-reference/runtimes/lua/functions/GetPlayerIdentifiers/
im gonna need help on that, not very good whit the getlicense identifier!
The code is open source, so you can modify it as you wish. I invite you to modify it according to your requests,
Sincerely, Azeroth