A simple script that adds trains to RedM. Adds the Southern and Eastern Railway route as well as the Central Union Railroad route. A Tram has also been added in Saint Denis.
Trains should only stop moving at the specified train stops or when they are waiting for another train to move. Where do the trains get stuck & is their any specific way to reproduce the issue?
Nice script, train works fine but the tram is a bit finicky, it moves sometimes, and will slightly move then stop 10-15 times little by little before actually moving again, not sure why
The tram will stop if they don’t have a clear path, going to look into making AI move out of the way for the tram and that will hopefully solve this issue
Please allow us to set the speed of the trains individually with the config file once it is released.
I tried playing around with the values, it is working but ONLY when the npc is driving the train, if I hope in the pilot seat the train moves at the default speed.
to have npc passengers you just need to change this “int handle = Function.Call((Hash)0xC239DBD9A57D2A71, trainModel, loc.X, loc.Y, loc.Z, 0, 0, 1, 1);” this
on
“int handle = Function.Call((Hash)0xC239DBD9A57D2A71, trainModel, loc.X, loc.Y, loc.Z, 0, 1, 1, 1);” this
and there’s no need to add anything more(npc passenger, driver etc) =)
Maybe I missed something with my server set up but I am having an error and the resource wont load…
“warning: Resource ts-trains is not using CitizenFXv2 manifest. This is not allowed for the current game (rdr3)”
I looked this up and it points to a missing “__resource.lua”
anyone have any suggestions?
Edit: I am a derp and downloaded the core files instead of the current version. I over looked the link at the top of the original post. Its working now!