# Error fixs

## 1. "You are not owner of this vehicle" or "dont have the keys"

If you have issues storing the vehicles in your garage you need to make some changes on your garage script.

This issues are more common on&#x20;

{% hint style="info" %}
If you are using multi character make sure the Config.UseMultichar is enabled
{% endhint %}

If you already settup up Config.UseMultichar and still have issues, here is the proccess to fix the issue:

{% hint style="info" %}
Even if Config.UseMultichar is well setted up, you can switch it and try ti store the vehicle, if you succedd, you dont need to follow the next steps
{% endhint %}

#### 1. Go to your garage script and find the call that checks the owner of the vehicle

#### 2.  Find the local identifier seted up, just like in the example

```lua
ESX.RegisterServerCallback('garage:storeVehicle', function (source, cb, vehicleProps)
	local ownedCars = {}
	local vehplate = vehicleProps.plate:match("^%s*(.-)%s*$")
	local vehiclemodel = vehicleProps.model
	local xPlayer = ESX.GetPlayerFromId(source)

	MySQL.Async.fetchAll('SELECT * FROM owned_vehicles WHERE owner = @owner AND @plate = plate', {
		['@owner'] = xPlayer.identifier,
		['@plate'] = vehicleProps.plate
	}, function (result)
...
```

If you have

```lua
local xPlayer = ESX.GetPlayerFromId(source)
```

Change it too

```lua
local xPlayer = GetPlayerIdentifier(source, 0)
```

And vice-versa

> For QBCore its diferent, but its unusual to have issues with it if Config.UseMultichar is setted up

#### 3. For vehicle keys system its the same process, you just need to find the server side part where it unlocks the vehicle if you the owner

## 2. The vehicles are not spawning on the start

If this is happening it all your cars, or just some locations, it means you have in the vehicle list some model that dont exist in the game.

* **To fix it you just need to find each vehicle is not spawning and delete it from vehicles list on your config file**

## 3. "This vehicle does not exist or it have any issue. Contact support"

If you receive this notification when selecting any vehicle on dealership, it means you have the same problem than in problem **2**.&#x20;

It means the model doesnt exist, so just make the same procedure than above.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://playooze-scripts.gitbook.io/playooze-scripts/script-guides/playooze-dealership/error-fixs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
