{"id":374661,"date":"2020-08-29T19:43:00","date_gmt":"2020-08-29T12:43:00","guid":{"rendered":"https:\/\/taimods.com\/2020\/08\/trainspawner-addonrails.html"},"modified":"2026-03-09T12:55:24","modified_gmt":"2026-03-09T05:55:24","slug":"trainspawner-addonrails","status":"publish","type":"post","link":"https:\/\/taimods.com\/en\/2020\/08\/trainspawner-addonrails.html","title":{"rendered":"MOD GTA5 &#8211; TrainSpawner [AddonRails]"},"content":{"rendered":"<p><center><img decoding=\"async\" src=\"https:\/\/taimods.com\/wp-content\/uploads\/TrainSpawner-AddonRails-1.jpg\"\/><\/center><br \/>\n<center><img decoding=\"async\" src=\"https:\/\/taimods.com\/wp-content\/uploads\/TrainSpawner-AddonRails-2-1.jpg\"\/><img decoding=\"async\" src=\"https:\/\/taimods.com\/wp-content\/uploads\/TrainSpawner-AddonRails-3-1.jpg\"\/><img decoding=\"async\" src=\"https:\/\/taimods.com\/wp-content\/uploads\/TrainSpawner-AddonRails-4-1.jpg\"\/><img decoding=\"async\" src=\"https:\/\/taimods.com\/wp-content\/uploads\/TrainSpawner-AddonRails-1.jpg\"\/><\/center><br \/>\n<center><br \/>\n<\/center><\/p>\n<h5>TrainSpawner [AddonRails]<\/h5>\n<hr\/>\n<p><strong>Short Description:<\/strong><br \/>\nThis 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.<\/p>\n<p><strong>Description:<\/strong><br \/>\nThis mod serves two purposes.<br \/>\nThe first one being to spawn trains of the freight and metro variety. Either triggered by pressing a key or automatically in two minute intervals.<br \/>\nThe 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.<br \/>\nThe 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.<\/p>\n<p><strong>Features:<\/strong><br \/>\n\u2013 Spawn Freight Trains by pressing T<br \/>\n\u2013 Spawn Metro Trains by pressing X<br \/>\n\u2013 Auto Spawn Trains on any rails<br \/>\n\u2013 Addon rails where trains auto spawn<br \/>\n\u2013 Configurable via ini file<\/p>\n<p><strong>Usage:<\/strong><br \/>\nThe T-Key is used for spawning the freight trains.<br \/>\nThe X-Key is used to spawn the metro trains. The trains are spawned at the nearest railtrack to your current player position.<\/p>\n<p><strong>Options:<\/strong><br \/>\nThe following settings can be changed in the \u201cTrainSpawner.ini\u201d:<br \/>\nThe key to spawn the freight: Default is T (0x54)<br \/>\nThe key to spawn the metro: Default is X (0x58)<\/p>\n<p><strong>Requirements:<\/strong><br \/>\nOpenIV<br \/>\nScriptHook<\/p>\n<p><strong>Optional Mods:<\/strong><br \/>\nRailroad Engineer to drive the train<\/p>\n<p><strong>Installation(basic):<\/strong><br \/>\nThis only installs the functionality to spawn trains on key press.<br \/>\nExtract \/ copy the \u201cTrainSpawner.asi\u201d and \u201cTrainSpawner.ini\u201d to your GTA V folder.<\/p>\n<p><strong>Installing Addon Tracks:<\/strong><br \/>\nTracks where the trains are auto spawned.<br \/>\nDownload a train track (a tainsXYZ.dat file). Open OpenIV and navigate to your \u201cmods\u201d folder. There go to \u201c\/common.rpf\/data\/levels\/gta5\u201d. Now rename your \u201ctrainsXYZ.dat\u201d file to something not already present in the \u201c\/gta5\u201d directory. E.g. per default there is a \u201ctrains1.dat\u201d, \u201ctrains2.dat\u201d, \u2026 , \u201ctrains12.dat\u201d so you could e.g. rename your \u201ctrainsXYZ.dat\u201d file to \u201ctrains13.dat\u201d. Now copy the renamed file into this (the \u201c\/gta5\u201d) directory.<br \/>\nNext edit the \u201ctraintracks.xml\u201d and copy one of the \u201ctrain_tracks\u201d and paste it at the end of the file before the tag. E.g.<\/p>\n<p>The \u201cfilename\u201d must end with the name of your .dat file, in this case \u201ctrains13.dat\u201d<br \/>\nThe rest of the parameters are not really relevant for this mod, just leave them like they are.<br \/>\nNow copy the \u201caddonRails\u201d folder from the downloaded archive into your main GTA V directory.<br \/>\nThe last step is to also copy your \u201ctrainsXYZ.dat\u201d file into one of the subfolders of \u201caddonRail\u201d.<br \/>\nCopying into the \u201cmetro\u201d folder will automatically spawn a metro on this track while the \u201cfreight\u201d folder means the script spawns a freight train.<\/p>\n<p><strong>How to create a train track:<\/strong><br \/>\nUsing this mod you can easily create a custom train track.<br \/>\nTrack Recorder<\/p>\n<p><strong>Known Issues:<\/strong><br \/>\nScript crashes if you spawn more than about 70 trains at once.<br \/>\nTracks under 10 nodes are not supported by the way my script calculates where to spawn the train.<\/p>\n<p>Thanks for downloading, hope you enjoy it.<br \/>\nIf you find any bug please write a comment about it \ud83d\ude42<\/p>\n<p><center>    <a href=\"\/getlink?url=68747470733a2f2f6d6f6464696e6766696c652e636f6d2f676635356b683868616e33302f3030353732662d547261696e537061776e657256332e377a2e68746d6c\" \r\n       target=\"_blank\"\r\n       style=\"\r\n            display: inline-flex;\r\n            align-items: center;\r\n            gap: 10px;\r\n            padding: 12px 24px;\r\n            border-radius: 6px;\r\n            background: var(--nqt-color-primary, #ff6a00);\r\n            color: #fff;\r\n            text-decoration: none;\r\n            font-weight: 600;\r\n            font-size: 16px;\r\n            border: 2px solid var(--nqt-color-primary, #ff6a00);\r\n            transition: all 0.3s ease;\r\n            box-shadow: 0 4px 6px rgba(0,0,0,0.1);\r\n       \"\r\n       onmouseover=\"this.style.background='#333'; this.style.borderColor='#333'; this.style.transform='translateY(-2px)';\"\r\n       onmouseout=\"this.style.background='var(--nqt-color-primary, #ff6a00)'; this.style.borderColor='var(--nqt-color-primary, #ff6a00)'; this.style.transform='translateY(0)';\"\r\n    >\r\n        <i class=\"fa-solid fa-download\"><\/i>\r\n        <span>DOWNLOAD MODS<\/span>\r\n    <\/a>\r\n    <\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>TrainSpawner [AddonRails] 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. Description: This mod serves two purposes. The first one being to spawn trains of the freight and metro [&hellip;]<\/p>\n","protected":false},"author":4347,"featured_media":413256,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[234],"tags":[],"class_list":["post-374661","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gta5-scripts"],"blocksy_meta":[],"acf":[],"_links":{"self":[{"href":"https:\/\/taimods.com\/en\/wp-json\/wp\/v2\/posts\/374661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taimods.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taimods.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taimods.com\/en\/wp-json\/wp\/v2\/users\/4347"}],"replies":[{"embeddable":true,"href":"https:\/\/taimods.com\/en\/wp-json\/wp\/v2\/comments?post=374661"}],"version-history":[{"count":1,"href":"https:\/\/taimods.com\/en\/wp-json\/wp\/v2\/posts\/374661\/revisions"}],"predecessor-version":[{"id":417502,"href":"https:\/\/taimods.com\/en\/wp-json\/wp\/v2\/posts\/374661\/revisions\/417502"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taimods.com\/en\/wp-json\/wp\/v2\/media\/413256"}],"wp:attachment":[{"href":"https:\/\/taimods.com\/en\/wp-json\/wp\/v2\/media?parent=374661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taimods.com\/en\/wp-json\/wp\/v2\/categories?post=374661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taimods.com\/en\/wp-json\/wp\/v2\/tags?post=374661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}