- Download the ZIP file and extract it in your resources folder.
- Run the SQL file
- Add ensure cx-parking to your server.cfg
- Navigate to qb-phone/html/index.html On line 414 Change My Garage to My Vehicles On line 426 change Garage to Location
<div class="garage-app-header">
My Vehicles
</div>
<div class="vehicle-garage"><span class="vehicle-detail">Location</span><span class="vehicle-answer">BMW M5</span></div>
-
Navigate to qb-phone/fxmanifest.lua
shared_scripts
Delete/Comment out
'@qb-garages/config.lua'
-
Navigate to qb-phone/server/main.lua
On line 196 Delete/Comment out this:
-
Navigate to qb-vehiclekeys/client/main.lua
On line 185 replace the function 'LockpickDoor' with this:
local function LockpickDoor(isAdvanced)
local ped = PlayerPedId()
local pos = GetEntityCoords(ped)
local vehicle = QBCore.Functions.GetClosestVehicle(pos)
if vehicle ~= nil and vehicle ~= 0 then
local vehpos = GetEntityCoords(vehicle)
if #(pos - vehpos) < 2.5 then
local vehLockStatus = GetVehicleDoorLockStatus(vehicle)
if (vehLockStatus > 0) then
QBCore.Functions.TriggerCallback('parking:server:getParkedVehicles', function(vehicles)
for k, v in pairs(vehicles) do
if GetVehicleNumberPlateText(vehicle) == v then
QBCore.Functions.Notify('This vehicle cant be lockpicked', 'error')
else
usingAdvanced = isAdvanced
TriggerEvent('qb-lockpick:client:openLockpick', lockpickFinish)
end
end
end)
end
end
end
end