[Code Snippet] Spawning GTA V Trains Online On Fivem

How to bring up Gta V Online trains On FiveM, this is very interesting if on the Gta V FiveM roleplay server there will be Trains, but everything will happen if you add my code.

Add the code below in any script (Free), or you can create a new one.

Citizen.CreateThread(function()
  SwitchTrainTrack(0, true)
  SwitchTrainTrack(3, true)
  N_0x21973bbf8d17edfa(0, 120000)
  SetRandomTrains(true)
end)

More Code Snippet :