dlc.rpf was downloaded from https://www.gta5-mods.com/vehicles/2015-nissan-gt-r-35-nismo-add-on-replace-animated
- Download OpenIV
- create working folder (ex:
resources/addonr35, all further work will be done inside this folder) - create
stream/folder - create
__resource.luafile - open
dlc.rpfin OpenIV - extract
data/orcommon/data/folder from dlc.rpf toaddonr35/ - extract
context.xmltoaddonr35/ - go into
x64/ - [Optional] if there is a folder here called
data/go into it then intolang/ - [Optional] go into your desired language (ex:
americandlc.rpf) - [Optional] right-click
global.gx2and clickExport to openformat text - [NOTE] this file contains entries that we will use later
- go into
x64/vehicles.rpf - copy all files from here into
addonr35/stream/ - [NOTE] There may be multiple folders and other .rpf files in here, go into each and copy over the plain files into
addonr35/stream/ - You can now close
dlc.rpfand OpenIV - Open up
__resource.luaandcontext.xml - [NOTE]
context.xmlis what you will use as reference for adding the correct metadata files to load - in
__resource.luaadd this to the top of the fileresource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' - looking at
context.xml, add in the data_files listed, it should show a filename, and right below it a type. Below is a list of types/files you can ignore RPF/.rpf TEXTFILE_METAFILE/dlctext.meta - at the very bottom of
context.xmlwill be another list of just the file names. the data_file entries in__resource.luaneeds to be in the same order - in
__resource.luayou need to also add an array of these metal files. For each data_file, add the filename/path intofiles {} - [NOTE] the file paths need to be changed if you renamed the
data/folder that was copied over! - if there was no global.g2a/.oxt file you're done :)
- now some coding :D create a new file called
vehicle_names.lua - copy/paste the code from my
vehicle_names.luaand write in entries fromglobal.oxtlike i have (make sure to delete or replace the ones i had in by default) - add this line into
__resource.lua:client_script 'vehicle_names.lua' - you can now delete
context.xmlandglobal.oxt - add resource to
citmp-server.yml(ex:- addonr35) - Profit :)