How to add vehiclelayouts.meta to _resource.lua

Hey guys so I need help making this helicopter FiveM ready I think I know the issue, how would i go about adding the vehiclelayouts.meta into my _resource.lua? I think it needs to be in there because I can spawn the helicopter but when I get into it the game crashes. I will attach the crash code at the end of the post. here is my current _resource.lua


_resource.lua

resource_manifest_version ‘77731fab-63ca-442c-a67b-abc70f28dfa5’

files {
‘vehicles.meta’,
‘handling.meta’,
‘carvariations.meta’,
‘dlctext.meta’,
}

data_file ‘HANDLING_FILE’ ‘handling.meta’
data_file ‘VEHICLE_METADATA_FILE’ ‘vehicles.meta’
data_file ‘VEHICLE_VARIATION_FILE’ ‘carvariations.meta’
data_file ‘DLC_TEXT_FILE’ ‘dlctext.meta’

– client_script {
– ‘vehicle_names.lua’
– }

So how do I add the vehiclelayouts.meta in there? ^
Here’s the crash report when getting into the heli.
CfxCrashDump_2021_09_06_18_13_37.zip (1.7 MB)

1 Like

this works:

files {
	'handling.meta',
	'vehiclelayouts.meta',
    'vehicles.meta',
	'carvariations.meta',
	'carcols.meta'--remove this if you don't have

}

data_file 'HANDLING_FILE' 'handling.meta'
data_file 'VEHICLE_LAYOUTS_FILE' 'vehiclelayouts.meta'
data_file 'VEHICLE_METADATA_FILE' 'vehicles.meta'
data_file 'CARCOLS_FILE' 'carcols.meta'--remove this if you don't have
data_file 'VEHICLE_VARIATION_FILE' 'carvariations.meta'

this is how I load a right hand drive car in fivem (vehicleslayouts required) and the car I made as exemple: Lotus Elise GT1 [Add-On / FiveM] - GTA5-Mods.com

*dlctext.meta you probably don’t need, so you can remove it
*check if the layout reference is ok in vehicles.meta

I suggest updating to fxmanifest as __resource.lua is depricated

1 Like