Create a resource to use a custom popgroups.ymt, inside the __resource.lua write this:
data_file 'FIVEM_LOVES_YOU_341B23A2F0E0F131' 'popgroups.ymt'
Afterwards, extract the popgroups.ymt from your game folder (It’s probably in the data folder somewhere) and place the popgroups.ymt file into your resource’s folder alongside __resource.lua.
Now open the popgroups.ymt and do CTRL + F to open the search bar on a decent text editor. There are three types of vehicle class
- VEH_MID (You may also want to modify VEH_MID_MP as well)
Search for one of those to bring up the XML grouping name and you should see, if you scroll down, quite a few vehicles already as children to the parent (e.g Baller is a child to VEH_RICH).
Simply just copy a line such as
<Item><Name>alpha</Name><Variations type="NULL"/></Item> and paste it under the vehicle class group below or above the rest of the lines containing vehicles. Change value between the tags to the name of the custom vehicle you want.
When your done it should look something like this:
That’s what worked for me, let me know if you need anything clarified I’m not the best when it comes to making instructions simple enough