[HELP/SOLVED] How to "stream" traintracks.xml and trainsx.dat?

You must to stream gta5.meta file with all modified files you want to use, example:

myresource
|–\fxmanifest.lua
|–\gta5.meta
|–\traintracks.xml
|–\trains.xml

In fxmanifest.lua, you must to define which you want to stream gta5.meta file with:

replace_level_meta ‘gta5’
files {
‘gta5.meta’,
‘trains.xml’,
‘traintracks.xml’
}

And in gta5.meta file, you must to set the good path for modified files you want to stream:


<filename>resources:/myresource/trains.xml</filename>

<filename>resources:/myresource/traintracks.xml</filename>

Same way if you want to stream custom trainsX.dat referenced by traintracks.xml:

filename=“resources:/myresource/trains1.dat”

Then refresh and start the resource to stream files. All your players already online must to restart their games to get all latest files.
Any other resource which stream gta5.meta will be replaced by this. The last resource started with a gta5.meta file streamed will be used, all previously started will be replaced. So if you have some resources which stream this file you must to compile all modifications into one resource if you want to apply all modifications.

In addition, I did not test, but I was told that it did not work if the resource in question was in a subfolder containing ( in example [esx] )…

6 Likes