(Couldn’t post it to Modding Tutorials please move)
I was looking for a way to add liveries “properly” by making a .yft file, couldn’t find a guide and if I asked around everyone said I should just add the livery to the .ytd file as a texture.
Finally figured it out and thought someone would find this guide helpful!
Credits
Step 1
Download Texture Toolkit
Texture Toolkit - GTA5-Mods.com
Step 2
Download my .yft and .dds files
GitHub - Curiosity-GitHub/addon-liveries: How to properly make addon liveries for Fivem. (livery.yft files)
Step 3
Make your livery.
Use the .dds file you downloaded (Make sure to not change the file name or the picture size)
Step 4
Open Texture Toolkit and Load the .yft file you downloaded.
Step 4 Picture
Step 5
Import the .dds file you edited to your liking. (!MAKE SURE THE FILE NAME IS elegy1_livery1.dds!)
Step 5 Picture
Step 6
Export your new livery.yft file (Name the file CARSPAWNCODE_livery1.yft)
(Examples: gtr_livery1.yft, skyline_livery1.yft , rs7.yft etc.)
Step 6 Picture
Step 7
Drop the car_livery1.yft file into your vehicle’s stream folder
Step 8
Modify your carcols.meta
<Item>
<modelName>car_livery1</modelName>
<modShopLabel>BLANK</modShopLabel>
<linkedModels/>
<turnOffBones />
<type>VMT_LIVERY_MOD</type>
<bone>chassis</bone>
<collisionBone>chassis</collisionBone>
<cameraPos>VMCP_DEFAULT</cameraPos>
<audioApply value="1.00000000"/>
<weight value="0"/>
<turnOffExtra value="false"/>
<disableBonnetCamera value="false"/>
<allowBonnetSlide value="true"/>
</Item>
Step 8 Picture
Step 9
Modify your vehicles.meta < flags > - Remove the flag “FLAG_HAS_LIVERY”.
IF YOU HAVE “FLAG_HAS_LIVERY” THEN REMOVE IT
< flags >FLAG_SPORTS FLAG_AVERAGE_CAR< /flags >