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

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?

So, I think that I’ve gone about this correctly. However fivem is telling me that it could not load my resource. Could someone help with this? I think I have included all of the necessary information below. Please let me know if I can provide anything else.

I think that the server.cfg file replaces the citmp-server.yml file.
However after messing with it and getting the cannot start resource error I decided to just type start vehicle in the cmd window. I’m still getting the same error though.

I’ve tried to stop the resource then load into my server and start the resource but fivem doesn’t seem to like that.

Copy of the context.xml

?xml version=“1.0” encoding=“UTF-8”?
CDataFileMgr__ContentsOfDataFileXml
disabledFiles /
includedXmlFiles /
includedDataFiles /
.dataFiles.
<Item
<filenamedlc_gtr:/data/vehicles.meta</filename
<fileTypeVEHICLE_METADATA_FILE</fileType
<overlay value=“false” /
<disabled value=“true” /
<persistent value=“false” /
</Item
<Item
<filename dlc_gtr:/data/carcols.meta</filename
<fileType CARCOLS_FILE</fileType
<overlay value=“false” /
<disabled value=“true” /
<persistent value=“false” /
</Item
<Item
<filename dlc_gtr:/data/carvariations.meta</filename
<fileType VEHICLE_VARIATION_FILE</fileType
<overlay value=“false” /
<disabled value=“true” /
<persistent value=“false” /
</Item
<Item
<filename dlc_gtr:/data/dlctext.meta</filename
<fileType TEXTFILE_METAFILE</fileType
<overlay value=“false” /
<disabled value=“true” /
<persistent value=“false” /
</Item
<Item
<filename dlc_gtr:/data/handling.meta</filename
<fileType HANDLING_FILE</fileType
<overlay value=“false” /
<disabled value=“true” /
<persistent value=“false” /
</Item
<Item
<filename dlc_gtr:/%PLATFORM%/vehicles.rpf</filename
<fileType RPF_FILE</fileType
<overlay value=“false” /
<disabled value=“true” /
<persistent value=“true” /
</Item
<Item
<filename dlc_gtr:/%PLATFORM%/vehiclemods/gtr_mods.rpf</filename
<fileType RPF_FILE</fileType
<overlay value=“false” /
<disabled value=“true” /
<persistent value=“true” /
</Item
</dataFiles
<contentChangeSets
<Item
<changeSetName gtr_AUTOGEN</changeSetName
<filesToDisable /
<filesToEnable
<Item/ dlc_gtr:/data/handling.meta</Item
<Item dlc_gtr:/data/vehicles.meta</Item
<Item dlc_gtr:/data/carcols.meta</Item
<Item dlc_gtr:/data/carvariations.meta</Item
<Item dlc_gtr:/data/dlctext.meta</Item
<Item dlc_gtr:/%PLATFORM%/vehicles.rpf</Item
<Item dlc_gtr:/%PLATFORM%/vehiclemods/gtr_mods.rpf</Item
</filesToEnable
<txdToLoad /
<txdToUnload /
<residentResources /
<unregisterResources /
</Item
</contentChangeSets
<patchFiles /
</CDataFileMgr__ContentsOfDataFileXml

Copy of my __resources.lua

resource_manifest_version ‘44febabe-d386-4d18-afbe-5e627f4af937’

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

data_file ‘VEHICLE_METADATA_FILE’ ‘data/vehicles.meta’
data_file ‘CARCOLS_FILE’ ‘data/carcols.meta’
data_file ‘VEHICLE_VARIATION_FILE’ ‘data/carvariations.meta’
data_file ‘TEXTFILE_METAFILE’ ‘data/dlctext.meta’
data_file ‘HANDLING_FILE’ ‘data/handling.meta’

client_script ‘vehicle_names.lua’

Copy of my vehicle_names.lua

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

Citizen.CreateThread(function()
AddTextEntry(‘0x9790D1BD’, ‘2017 NISSAN GTR’)
end)

Copy of the global file
Version 2 30
{
0x0F5EED98 = Liberty Walk
0x1B02843C = Liberty Walk
0x31A6DAD4 = RocketBunny
0x847AD6BF = Nismo
0x9790D1BD = 2017 NISSAN GTR
0x23583E37 = Nismo
0x756930C0 = Liberty Walk
0xA2321340 = RocketBunny
0xB6B13B2B = RocketBunny
0xB480B7DD = Nismo
0xC3C1CD70 = RocketBunny
0xC6E70556 = Liberty Walk
0xD1D0698D = Nismo
0xDC75E655 = Liberty Walk
0xF15C9022 = RocketBunny
}

Layout of my data folder.

Layout of my stream folder.

Nevermind, Just pay attention to the tut.

Really struggling to figure out how to get the mods working, I’ve had no problems with other addons that have been uploaded to the releases section, but no matter what car I convert, I can’t figure out how to get the mods working. Please let me know if someone can help out! Have a good day :slight_smile:

Does anybody know how to get the text entry # for the vehicle_names.lua? ive tried and cannot find out how.

If you are doing addon vehicles you do not need the vehicles_names.lua, that is only needed to replace stock vehicles.

One of the addon cars I want to convert, comes with a clip_sets.xml file. How would I add that to the server, and do I even need to include it?

You can get the text entry # in OpenIV by going to some place that looks like this
[CAR]\dlc.rpf\x64\data\lang\americandlc.rpf\

I cant open a file in OpenIV! Cant see the file in there

Can you please make a video showing us how to do it please. Because the readme is kinda confusing.

1 Like