VULNERABLE TRAINS - VERSION 1---------

Hi there, looks like you opened the readme file!

DESCRIPTION---------------------------

Turns on the ability for a train to be destroyed, which is normally off in standard gameplay, but evident in some multiplayer situations. 

INSTALLATON---------------------------

You will need the following files beforehand to get this working properly, if you already have installed a LUA script before, this works the same way as the others.

Script Hook V: http://gtaforums.com/topic/788343-vrel-script-hook-v/

LUA Plugin for Script Hook V: http://gtaforums.com/topic/789139-vrelhook-lua-plugin-for-script-hook-v/

Then, put the VulnerableTrains.lua file in the scripts/addins folder in your main GTA V directory.

COMPATIBILITY-------------------------

Ive tested this mod with Walters Improved Trains 4.0 mod, and it works with the single engine option. Issues arise when there is more than one main engine, I think it can manage two, but it consistently works with one. 
Until I can find a way to better detect trains, it will likely stay this way for a bit. 

The same would go for any similar mods to my knowledge. It also works with various train driver scripts, though not perfectly. 
The issue is that they will allow you to enter a train that has already been destroyed, which wont break the game or anything, just look weird. In the case of J10s excellent Railroad Engineer mod, when a train derails, 
a live train may crash into the derailed cars and explode. This is pretty cool to look at, but I would be careful when doing this, I know I have seen some crashes before in the past in other cases like this one.

I would expect this would make some missions impossible if a train is destroyed when it shouldnt be.

Tl;dr: This isnt extensively tested and might break something.

NOTES---------------------------------

Credit to headscript for the original Train Driver script, from which some lines are taken, specifically the method of detecting trains near the player.
