TrainSpawner [AddonRails] 3.0


4 292

Short Description:
This mod spawns trains on key press or automatically. It also allows you to spawn trains on rails that are normally not used like the ones in North Yankton or on DLC maps.

This mod serves two purposes.
The first one being to spawn trains of the freight and metro variety. Either triggered by pressing a key or automatically in two minute intervals.
The trains spawned with a key press are spawned at the nearest train track to your current player position. The auto spawned trains spawn somewhere in the distance, a bit like the normal trains of GTA V.
The second purpose is that this mod can spawn trains on ALL rails. This means freight trains on the metro tracks or metro trains on freight tracks. It can even spawn trains on mission tracks like the ones in North Yankton or around the San Chianski gravel pit. Even more interesting, with this mod you can install train tracks as addons. This way you will never need to replace a train track in the traintracks.xml you can just simply add new ones. This is especially interesting for map mod makers who can now add working trains to their maps without replacing the train lines in Los Santos.

- Spawn Freight Trains by pressing T
- Spawn Metro Trains by pressing X
- Auto Spawn Trains on any rails
- Addon rails where trains auto spawn
- Configurable via ini file

The T-Key is used for spawning the freight trains.
The X-Key is used to spawn the metro trains. The trains are spawned at the nearest railtrack to your current player position.

The following settings can be changed in the "TrainSpawner.ini":
The key to spawn the freight: Default is T (0x54)
The key to spawn the metro: Default is X (0x58)

OpenIV (https://de.gta5-mods.com/tools/openiv)
ScriptHook (https://de.gta5-mods.com/tools/script-hook-v)

Optional Mods:
Railroad Engineer to drive the train (https://de.gta5-mods.com/scripts/railroad-engineer)

This only installs the functionality to spawn trains on key press.
Extract / copy the "TrainSpawner.asi" and "TrainSpawner.ini" to your GTA V folder.

Installing Addon Tracks:
Tracks where the trains are automatically spawned.
Read the README file since this is a bit complicated :)

As an example you can look at how the cablecar is added:

How to create a train track:
Using this mod you can easily create a custom train track.

Known Issues:
Script crashes if you spawn more than about 70 trains at once.
Tracks under 10 nodes are not supported by the way my script calculates where to spawn the train.

V1.0: Initial Release
V2.0: Added support for Addon-Train models, multiple train-configs per key and improved stability
V3.0: Support for GTA Patch 1.57, removed logging in release to improve performance

Special Thanks to:
dexyfex (CodeWalker)
OpenIV Team (OpenIV)

Thanks for downloading, hope you enjoy it.
If you find any bug please write a comment about it :)
Show Full Description

Первая загрузка: 22 июля 2020
Последнее обновление: 17 октября 2021
Последнее скачивание: 12 минут назад

All Versions

 3.0 (current)

2 637 загрузки , 129,0 КБ
17 октября 2021


1 099 загрузки , 128,0 КБ
12 ноября 2020


549 загрузки , 118,0 КБ
22 июля 2020

67 комментариев