Qbcore adding new vehicle category

i have no issues adding custom cars to pdm and everything works fine when they are bought. but i cant figure out how to ADD a vehicle category like IMPORTS or JDM, etc. ive checked vehicle shop config, and the database but cant seem to find it…any help much appreciated.

I dont know what framework or carshop you are using but most of the time its somewere in your vehicleshop config. Give more infos for more help :wink:

qbcore and using the standard qbcore vehicle shop from here GitHub - qbcore-framework/qb-vehicleshop. the config.lua shown doesn’t have the car category, but on the github page there is code below which lists the categories and im not sure if im meant to replace the config.lua with the one on github and then just add my own category below or not ?

ive come from ESX where adding categories was done through the database, qbcore is new to me so i apologize if what im asking above doesn’t make sense :smiley:

Hey, I dont use this script my self but it looks to me that your qb-vehicleshop on your server is outdated and you should reinstall the new from github and then just replace or add the categorys :upside_down_face:

figured it out just had to add the below to config.lua in qb-vehicleshop and then change the category of the cars in vehicles.lua from qb-core/shared.

 ['Categories'] = { -- categories available to browse
            ['newcategory'] = 'New Category',
1 Like

I see, well done!

can you show where you put it. cause when i put it in the config it made the whole script stop working

Im not sure how you have done this as I have looked into adding a category “import”

would love to know where he put it, if i put it in the vehicles.lua file, it make the whole script stop working

For everyone trying to figure out how to add categories still just add:
[‘Categories’] = { – categories available to browse
[‘namehere’] = ‘NAMEHERE’,
},
to your qb-vehicleshop/config.lua under the shop you want to have categories