Ofcourse, I just took this one more step and made everything easier. No need for the merge program at all, just modify a _resource.lua file to look like this: (used 2 cars as example: gauntletc and gto )

resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'

files {
    --gauntletc    
    'cars/gauntletc/vehicles.meta',
    'cars/gauntletc/carvariations.meta',
    'cars/gauntletc/carcols.meta',
    'cars/gauntletc/handling.meta',
   	
   	--gto    
    'cars/gto/vehicles.meta',
    'cars/gto/carvariations.meta',
    'cars/gto/carcols.meta',
    'cars/gto/handling.meta'
    
    
    
    --  THE LAST LINE ITEM ABOVE SHOULD NOT HAVE A COMMA ( , ) AT THE END
    
    --'vehiclelayouts.meta',    -- Not Required, only used on some addons
}

--gauntletc
data_file 'HANDLING_FILE' 'cars/gauntletc/handling.meta'
data_file 'VEHICLE_METADATA_FILE' 'cars/gauntletc/vehicles.meta'
data_file 'CARCOLS_FILE' 'cars/gauntletc/carcols.meta'
data_file 'VEHICLE_VARIATION_FILE' 'cars/gauntletc/carvariations.meta'

--gto
data_file 'HANDLING_FILE' 'cars/gto/handling.meta'
data_file 'VEHICLE_METADATA_FILE' 'cars/gto/vehicles.meta'
data_file 'CARCOLS_FILE' 'cars/gto/carcols.meta'
data_file 'VEHICLE_VARIATION_FILE' 'cars/gto/carvariations.meta'


--data_file 'VEHICLE_LAYOUTS_FILE' 'vehiclelayouts.meta' --not required, only used on some addons

client_script {
    'vehicle_names.lua'    -- Not Required, but you might as well add the cars to it (USE GAMENAME not ModelName)
}

Ill attach the file for you:

__resource.lua (1.3 KB)

obviously, I just put the cars .metas into a folder with the cars name, all within a folder called ‘cars’. all of the stream files are in the single ‘stream’ folder. The vehicle_names.lua is concatenated (put all the cars names in the one file)

anyway I found this is the easiest way to combine cars into one resource. yes the car mods still work this way too. and if you want to temporarily remove a car you just have to comment out that section of the _resource.lua

12 Likes