Step 5

Garages

You will find the garages configuration inside qs-housing/client/custom/garages/*, inside that folder you will have all the compatible garages by default, but you can add yours using another one as an example.

If your garage is not listed, please ask the creator to adapt it with events for this system.

Modifications applied to qb-garages

In this step we will show the installation of the official qb-core garage, which can be found at this link.

The modification of JondasDev qb-garages with radialmenu is compatible too

qb-garages/server/main.lua
-- Line 117
elseif type == "house" then
    MySQL.query('SELECT * FROM player_vehicles WHERE plate = ?', {plate}, function(result)
        if result[1] then
                                         -- Here
            local hasHouseKey = exports['qs-housing']:hasKey(result[1].license, result[1].citizenid, house)
            if hasHouseKey then
                cb(true)
            else
                cb(false)
            end
        else
            cb(false)
        end
    end)
elseif type == "gang" then 

Last updated