Follow the garage installation method so that there are no mistakes
Installation
Install the dependencys
Extract rhd_garage into your resources
Run the SQL provided in the SQL folder
If you use QB-Phone then you have to change several codes as below
QB-Phone
Original
client/main.lua
-- line 302PhoneData.GarageVehicles=exports.rhd_garage:getvehForPhone()
client/main.lua
-- line 860RegisterNUICallback('track-vehicle', function(data,cb)localveh=data.vehlocalsuccess=exports.rhd_garage:trackveh(veh.plate, veh.garage)ifsuccessandnotveh.disableTrackingthenQBCore.Functions.Notify("Your vehicle has been marked", "success")elseQBCore.Functions.Notify("This vehicle cannot be located", "error")endcb("ok")end)
Renewed-Scripts
client/garage.lua
-- line 21RegisterNUICallback('SetupGarageVehicles', function(_,cb)vehicles=exports.rhd_garage:getvehForPhone()end)
client/garage.lua
-- line 27RegisterNUICallback('gps-vehicle-garage', function(data,cb)localveh=data.vehlocalsuccess=exports.rhd_garage:trackveh(veh.plate, veh.garage)ifsuccessandnotveh.disableTrackingthenQBCore.Functions.Notify("Your vehicle has been marked", "success")elseQBCore.Functions.Notify("This vehicle cannot be located", "error")endcb("ok")end)