# QBCore

*This tutorial will help you disable your players to take out owned vehicles marked as rentable from the garage.*\
*If you don't manage to do it alone, please open ticket on our* [*Discord Server*](https://discord.gg/uniq-team)*.*

What you need to find is **function/event/callback** in your garage's script server side where the script is getting all owned garage vehicles (qb-garages - **"qb-garage:server:GetGarageVehicles"**).\
Inside the **function/event/callback** you will find MySQL query where all vehicles from **"player\_vehicles"** table (usually player\_vehicles on qb-core) where citizenid = player's citizenid.\
Example:

<pre class="language-lua"><code class="lang-lua"><strong>MySQL.query('SELECT * FROM player_vehicles WHERE citizenid = ? AND garage = ? AND state = ?', {pData.PlayerData.citizenid, garage, 1}, function(result)
</strong>    if result[1] then
        cb(result)
    else
        cb(nil)
    end
end)
</code></pre>

What you need to do is to inside the query selector add this code snippet:

```lua
AND rentable = 0
```

... so it shoud look like this:

<pre class="language-lua"><code class="lang-lua"><strong>MySQL.query('SELECT * FROM player_vehicles WHERE citizenid = ? AND garage = ? AND state = ? AND rentable = 0', {pData.PlayerData.citizenid, garage, 1}, function(result)
</strong>    if result[1] then
        cb(result)
    else
        cb(nil)
    end
end)
</code></pre>

Do it for all query selectors.
