[Release] Auto Merge Vehicles

its work for me
300+ car and work just have problem if there no txdRelationship in vehicles.meta the vehicle can merge

have some problem with the RHD car

Exactly! Thank you for stating this.

updated

update for RHD car ?

vehiclelayouts.meta itself should ideally be loaded prior to vehicles.meta, as add-ons with nonstandard layouts and right-hand drive configurations become problematic if it is loaded afterwards.
Doing this has actually fixed crashing with nonstandard and right-hand drive-configured layouts, as I’ve experimented with this myself.

files {
 'data/**/*.meta',
}

data_file 'HANDLING_FILE'			'data/**/handling.meta'
data_file 'VEHICLE_LAYOUTS_FILE'	'data/**/vehiclelayouts.meta'
data_file 'VEHICLE_METADATA_FILE'	'data/**/vehicles.meta'
data_file 'CARCOLS_FILE'			'data/**/carcols.meta'
data_file 'VEHICLE_VARIATION_FILE'	'data/**/carvariations.meta'
5 Likes

Can you make the cars also have different folders for all of the cars, Like the data files but they are named the car spawn codes, like 1 folder named (carspawncode) and one named (carspawncode1) and the carspawncode1 car files in there?

Thanks

Just tried this and it “sorta” “kinda” works. It moved all the stream files to one folder and it did create individual folders for all 4 vehicles I used for the test in the data folder, but it did not actually put any of the metas in so I had to paste them into the folder manually. For a small merge like that with 4 files, not a big deal but if I was to do a large merge, it would be a lot of work.

I did also manually move the vehicles meta to the bottom of the list in the manifest file.

I tried this with our 3 ambulances and coroner van to build them into a single resource and I can spawn all the vehicles, but clearly the carcols are not working as I have zero lights on them

DRAGONBORNE COMES !!! :joy:

Thank you so much for this script! This makes peoples lives so much easier including mine!

It works great for me.

Take a look in the carcols + carvariations, as it change the id to put the originals one

hi, my Merged-Vehicle.txt always comes up blank?

it copies all the files… but nothing spawns?

Any help please.

cheers… Daz

I am having a similar issue to where the vehicles merge but the merd-vehicle.txt is blank. I was however able to spawn the vehicles after doing a server restart. Did you try that?

nice working bro more power

need just brain and talent how to use this

seems to cause some carcol issues any fixes?

so we use the fx instead of resoucr.lua? i use the fx and my cars wont spawn, is there anything im missing or should i just replace the fx manifest.lua with resource.lus?

Fx is the new way. Resource.lua is outdated. You should always be using fxmanifest now.

If your cars aren’t spawning the you should look at you folder structure or model make sure those are fine and make sure you put them corectlly in fxmanifest

1 Like

youre absolutely right. I got it working and thanks for the support!

No problem :slight_smile: