Why isn't /admincar working?!
Fixes for when /admincar can't add a vehicle to your garage in QBCore
/admincar is a commonly used command in QBCore that lets admins add a spawned-in vehicle to their owned vehicles. What's even more common though is this error:

A few mistakes can stop you owning vehicles in QBCore. This guide explains what might be wrong and how to fix it.
Issues with the vehicles meta file
First, have a look at the vehicle itself. Browse to your vehicle's files and go to the "Data" section (this is where the vehicle's .meta files are located). Each vehicle has the following .meta files:
carvariations.metahandling.metavehicles.meta
Some vehicles may have more, but these are the main ones you need to look at.

Typical meta files found with an addon vehicle
First, some fundamentals. Your car's model name is the name of the model in the "Stream" section of your vehicle's files. This is also the vehicle's in-game spawn code once it has been added. You can change the name, but we don't recommend it, as it needs changing in all "Data" files to work properly.
Model names that don't follow these rules break /admincar:
- NEVER put any capital letters in this name.
- NEVER put any symbols in this name.
- NEVER make the name longer than 12 characters - this can be unreliable.
carvariations.meta: the only thing you should double-check or change is the "modelName".
<modelName>pgt3</modelName> handling.meta: the only thing you should double-check or change is the "handlingName".
<handlingName>pgt3</handlingName> vehicles.meta: you'll need to double-check a lot of things here. Below is an example of what to look out for or change.
<modelName>pgt3</modelName>
<txdName>pgt3</txdName>
<handlingId>pgt3</handlingId>
<gameName>pgt3</gameName>
<audioNameHash>gt3flat6</audioNameHash>
<vehicleClass>VC_SUPER</vehicleClass> If you've followed these steps, your vehicle model itself should be working. Restart the server fully and try /admincar again.
You could restart only the resource holding the addon vehicle, but this crashes the game if ANY vehicle in the resource is still out in the world, so we don't recommend it.
If you still get the pop-up saying "You can't store this vehicle in your garage..", move on to the next step.
Mistakes QB-Core/shared/vehicles.lua file
The second thing to check is the shared vehicles file, located at [qb]/qb-core/shared/vehicles.lua. This should contain every vehicle that can be stored or owned in the garage system. If the vehicle you're trying to /admincar isn't in this file, or isn't formatted correctly, it won't work.
The fundamentals from the first part still apply here, so if you're unsure, go back and check those before you continue.
Below is an example of a properly formatted shared vehicle:
['pgt3'] = {
['name'] = '911 GT3 RS',
['brand'] = 'Porsche',
['model'] = 'pgt3',
['price'] = 195000,
['category'] = 'super',
['hash'] = `pgt3`,
['shop'] = 'pdm',
},Here's what to put where:
['pgt3'] = { This should be set to the model name. (check fundamentals to see what is not allowed and where to find this.)
['name'] = '911 GT3 RS', This should be set to the vehicle's name, which is displayed in the garage system. Capital letters and symbols are allowed here.
['brand'] = 'Porsche', This should be set to the vehicle's brand, which is displayed in the garage system. Capital letters and symbols are allowed here.
['model'] = 'pgt3', This should be set to the model name. (check fundamentals to see what is not allowed and where to find this.)
['price'] = 195000, This sets the price for QB-Vehicleshop and should reflect how much the vehicle is worth. Some replacement vehicle shops also use it to set the price, or to import vehicles into their store using the data in the shared/vehicles.lua file.
['category'] = 'super', This should be set to the vehicle category. Some scripts use it to determine how much inventory capacity the vehicle has, or which store category it gets added to.
['hash'] = pgt3, This should be set to the model name. (check fundamentals to see what is not allowed and where to find this.)
['shop'] = 'pdm', This is set to pdm by default. QB-Vehicleshop and most other replacements support multiple dealerships, so set this to the dealership you want this vehicle sold in. Replacement shops that import vehicles from shared/vehicles.lua also use this field.