i currently have 4 vehicles on my server installed, but in vmenu when i want to spawn the car in its under unavailable vehicles and i cant spawn it in, i’ve added the name to vmenu, but it still doesnt work, can someone help?
Perhaps you should give way more information like what the files are, what your current setup is in vMenu, what the contents of your file are for a vehicle and so on. Just expecting people to help you without you giving any of the files or information is impossible.
i installed my cars in my resources/[cars]/arvulcan, in this map are the files __resource.lua, carvariation.meta, dlctext.meta, handling.meta, vehicles.meta and a map called stream with the vulcan.yft, vulcan_hi.yft and vulcan.ytd. in my __resource.lua is:
– Manifest
resource_manifest_version ‘f15e72ec-3972-4fe4-9c7d-afc5394ae207’
files {
‘data/carcols.meta’,
‘data/carvariations.meta’,
‘data/handling.meta’,
‘data/vehicles.meta’,
–‘data/contentunlocks.meta’,
–‘data/vehiclelayouts.meta’,
–‘data/shop_vehicle.meta’,
}
data_file ‘CARCOLS_FILE’ ‘data/carcols.meta’
data_file ‘VEHICLE_VARIATION_FILE’ ‘data/carvariations.meta’
data_file ‘HANDLING_FILE’ ‘data/handling.meta’
data_file ‘VEHICLE_METADATA_FILE’ ‘data/vehicles.meta’
–data_file ‘CONTENT_UNLOCKING_META_FILE’ ‘data/contentunlocks.meta’
–data_file ‘VEHICLE_LAYOUTS_FILE’ ‘data/vehiclelayouts.meta’
–data_file ‘VEHICLE_SHOP_DLC_FILE’ ‘data/shop_vehicle.meta’
–client_script { ‘client/vehicle_name.lua’ }
in my vmenu i added under vehicles vulcan. in my server.cfg i added start [cars]
i also tried it with other car spawner, i didnt work, it said couldnt load in time stopped to prevent a crash
Look carefully at the files you added to your manifest file (which should be fxmanifest nowadays technically and not __resource.lua but ignore that for now)
You pointed the files to a place that doesn’t exist and you added some files in there that don’t exist at all
so now i changed __resource to fxmanifest, and changed it to
– Manifest
resource_manifest_version ‘f15e72ec-3972-4fe4-9c7d-afc5394ae207’
files {
‘data/carvariations.meta’,
‘data/handling.meta’,
‘data/vehicles.meta’,
‘data/dlctext.meta’,
}
data_file ‘VEHICLE_VARIATION_FILE’ ‘data/carvariations.meta’
data_file ‘HANDLING_FILE’ ‘data/handling.meta’
data_file ‘VEHICLE_METADATA_FILE’ ‘data/vehicles.meta’
data_file ‘DLCTEXT_FILE’ ‘data/dlctext.meta’
–client_script { ‘client/vehicle_name.lua’ }
but it still doesnt work, still the same error
oh, i fixed it, it had to be DLC_TEXT_FILE
thanks for the help!
No that’s completely wrong. Hence why I said that maybe we shouldn’t worry about fxmanifest first.
https://docs.fivem.net/docs/scripting-reference/resource-manifest/resource-manifest/#example
fxmanifest.lua
fx_version "cerulean"
game "gta5"
files {
"data/carvariations.meta",
"data/handling.meta",
"data/vehicles.meta",
"data/dlctext.meta",
}
client_script "vehicle_name.lua" -- you need this for vMenu
data_file "VEHICLE_VARIATION_FILE" "data/carvariations.meta"
data_file "HANDLING_FILE" "data/handling.meta"
data_file "VEHICLE_METADATA_FILE" "data/vehicles.meta"
data_file "DLC_TEXT_FILE" "data/dlctext.meta"
Now make sure your .meta files are in the data folder. Make sure the files that end with a .y* are in the stream folder. Make sure fxmanifest.lua is in the root folder (just like where __resource.lua is, DONT HAVE BOTH, delete __resource.lua)
car_folder
----> stream
----> data
— fxmanifest.lua
(DLC_Text_FILE was indeed also a mistake, I missed that as well. But please use fxmanifest correctly)
the vehicle layouts file also needs to be loaded before vehicles.meta
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.