QBCore - Imported vehicles not wanting to store in garage using /admincar

So I have a car that I Imported “16challenger” is its spawn code.
I put the car in shared.lua and pointed it to the pdm vehicleshop.

If i buy the car from pdm than i am able to put it in the garage, but if i spawn it with /car or use the /admin for the menu and then use /admincar or use the adminmenu to “Buy” the car for free, it tells me that I cant store the car in the garage. Its only doing this with add on cars, but vanilla cars work just fine

7 Likes

Hello,
if your code for the vehicleshop works correctly replace it for the one in your admin menu.
Let me know if you have question, but I will need to see some code and your patience :stuck_out_tongue:

Thanks

3 Likes

Mine is doing the same… Any fix? I’m not wanting to put all of the imports into PDM. Im wanting them to be Dono Imports.

3 Likes

Believe I have fixed this. Try opening up qb-adminmenu and going to developer options and turn on Vehicle Dev Mode. And where it says model if it says null then it wont work cause it tries to get that part and it since its null. So what you have to do is create script that Shows vehicle names

4 Likes

can u pls give us the script? that can help us a lot

1 Like

In the vehicle.meta from vehicle files make sure the gamename value is the same as the model name

2 Likes

can u give me more info, wdym?

nvm ty very much it worked

1 Like

what did you do to fix that issue if you could share the info?

2 Likes

image

I tried that, but for me it continuous to error out, and in the admin menu it keeps saying NULL

1 Like

I am having the exact same issue; did you ever find a fix?

Go into your qb-core folder and in shared>vehicle.lua

and put your vehicle in there.
image

1 Like

That is exactly how I have been doing it. It just isn’t working specifically for 3 cars that I have

image
image
image

We are having a similar issue to this, and its only with a few select cars. We have discovered car names over 10 characters seem to have issues storing, but we have a few cars under 10 characters that all names match on and still will not admincar

3 Likes

Did you figure this out? :see_no_evil:

2 Likes

Check your vehicles meta and make sure the game name is the same as the spawn code

Idk what it is, but some of our vehicles are the same way. I don’t get it

Dont forget to replace the vehicle hash in qbcore/shared/vehicles.lua

EDIT: If you dont know how to create such a hash then I could explain it

2 Likes

I had the same problem. Added the car to the vehicleshop and then I could give myself the car with /admincar.

2 Likes

kinda late but thank you! this works out so well and i can now even see the name on the right bottom corner🤩

1 Like