[How-To] Convert Vehicle Add-On to FiveReborn resource

To make sure your xml files are not broken, paste them in here to check them. This will not check if values are wrong, but will check if you structured it wrong.

You mean the content.xml? Because that file isn’t being used in the mod folder in my server resources.

Sorry! I mean the .meta files. They are in xml format.

I wasn’t quite sure what to do here as my content.xml file was completely different to the one op had used as a demonstration so i just copied his one and edited.

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

data_file ‘VEHICLE_LAYOUTS_FILE’ ‘240z/vehiclelayouts.meta’
data_file ‘HANDLING_FILE’ ‘240z/handling.meta’
data_file ‘VEHICLE_METADATA_FILE’ ‘240z/vehicles.meta’
data_file ‘CARCOLS_FILE’ ‘240z/carcols.meta’
data_file ‘VEHICLE_VARIATION_FILE’ ‘240z/carvariations.meta’

files {
‘240z/vehiclelayouts.meta’,
‘240z/handling.meta’,
‘240z/vehicles.meta’,
‘240z/carcols.meta’,
‘240z/carvariations.meta’,
}

client_script ‘vehicle_names.lua’

So i fixed my previous problem i belive but now when i try to spawn the vehicle in using the lambda menu, the car doesnt appear and the lambda menu stops working (f1 key doesnt bring up the meny anymore) any ideas?

I have been stumped with add-on vehicles, mostly with their added weapons and I have issues with add-on peds. Look at this, I am not sure if there is even a solution.

at the very bottom of context.xml will be another list of just the file names. the data_file entries in __resource.lua needs to be in the same order

This isn’t actually completely true, I have an add on that when it matches the content.xml it flat crashes the game. I would put the _resources.lua entries into order as much as you can, but it should actually go like this:

data_file 'HANDLING_FILE' 'Vehicles/handling.meta'
data_file 'VEHICLE_METADATA_FILE' 'Vehicles/vehicles.meta'

Handling first, then vehicles, and whatever else comes with the add on vehicles, goes on after.

Can someone show me how to do this as I have tried but it went wrong. Just need a demonstration of how to do it

So I’ve figured out how to add custom vehicles, however, I would like to add a car that has extra vehicle mods, such as bumpers, lights, etc… Addon models that can be attached to the car.

For Example: https://www.gta5-mods.com/vehicles/lexus-gs-350-police-template-tuning-nfs-handling-sound

This car has a folder called “vehiclemods” in the rpf which are just extra models.

How does one make it so those vehicle models work?

Nice tutorial, however I’m still confused on the vehicle_names.lua like where do you get that number from?? I’m trying to do it for a police car pack however I’m getting stuck on that bit

eg.

function AddTextEntry(key, value)
Citizen.InvokeNative(GetHashKey(“ADD_TEXT_ENTRY”), key, value)
end

Citizen.CreateThread(function()
AddTextEntry(‘0xC593CAF5’, ‘Nissan GT-R 35 Nismo 2015’)
AddTextEntry(‘0xC990C46A’, ‘Nissan GT-R 35 Nismo 2015’)
end)

where do you get ‘0XC593CAF5’ from?? All I get with the vehicle are the files then a carvations and vehicles .meta file…

Can anyone help me? Please

Not all mods come with it, but under the x64 folder, there could be a lang folder and in that will be americandlc.rpf and maybe others too.
Open the americandlc.rpf and there will be a file called global.gx2 or something like that. When you open it, those hashes with the names will be there

1 Like

For that mod in particular, I couldn’t seem to get the mods to work, however all you need to do is just add the files to the stream folder in the resource you made for the addon.
Thats what I have done for other mods and it has worked fine.

Thanks man, I’ll try it with another car. :slight_smile:

tried a few things cant seem to get addons working :confused:

I added a motorbike but you do not hear the sound of the engine or the sirens is a police?

When I open the dlc.rpf there is no context.xml file anywhere. I used the same car you did for the example

guys put every car in one separated folder for example if you want to add a lamborghini
pout it in a folder name it lambourghini
then create a __resource.lua file
and put this code

resource_manifest_version 'f15e72ec-3972-4fe4-9c7d-afc5394ae207'

files { 'vehicles.meta', 'carvariations.meta', 'carcols.meta', 
'handling.meta', 
'extratitleupdatedata.meta', 
'vehiclelayouts.meta'
}

data_file 'HANDLING_FILE' 'handling.meta'
data_file 'VEHICLE_METADATA_FILE' 'vehicles.meta'
data_file 'CARCOLS_FILE' 'carcols.meta'
data_file 'VEHICLE_VARIATION_FILE' 'carvariations.meta'
data_file 'VEHICLE_LAYOUTS_FILE' 'vehiclelayouts.META'

and create a folder name it stream
open the DLC.rpf of lamborghini and transfer files
vehicles.mtea
carcoles.meta if existe
handling.meta
caravantions.meta
in lamborghini folder

and put yft + ytd files in stream folder

then you start your folder in your server

start labmborghini

start your server and everything now is good
if you have installed es_extended plugin you can spawn your vehicles by
/car yourcarname
in chat

1 Like

Not sure why, but I followed this tutorial to the T and when i try to join my server it just freezes. Wasn’t before i added the car. I’m trying to add this car, and I did exactly as the tutorial told me, and when I go to join my server, I get my regular loading screen, and it goes through everything, but then I look over at my server console and it says I’ve disconnected. Tried to join multiple times. Client doesn’t crash, just stops doing anything.

UPDATE
I waited for about an hour and then I was able to connect. Now it just sits loading forever. Literally asked lambda to spawn it after setting up a bunch of other stuff to be able to roleplay, went and roleplayed for half an hour and the car never spawned.

Hello, you managed to make the modkits work?