π ΏοΈRHD Garage
This is an ESX and QBCore compatible garage script, made with love by the RHD team.
Installation:
Run SQL according to the framework you use
If you use QB-Phone then you have to change several codes as below
If you use QB-Phone then you have to change several codes as below
client/main.lua
line:302
PhoneData.GarageVehicles = exports.rhd_garage:getvehForPhone()client/main.lua
line:860
RegisterNUICallback('track-vehicle', function(data, cb)
local veh = data.veh
local success = exports.rhd_garage:trackveh(veh.plate, veh.garage)
if success and not veh.disableTracking then
QBCore.Functions.Notify("Your vehicle has been marked", "success")
else
QBCore.Functions.Notify("This vehicle cannot be located", "error")
end
cb("ok")
end)client/garage.lua
line:21
RegisterNUICallback('SetupGarageVehicles', function(_, cb)
vehicles = exports.rhd_garage:getvehForPhone()
end)client/garage.lua
line:27
RegisterNUICallback('gps-vehicle-garage', function(data, cb)
local veh = data.veh
local success = exports.rhd_garage:trackveh(veh.plate, veh.garage)
if success and not veh.disableTracking then
QBCore.Functions.Notify("Your vehicle has been marked", "success")
else
QBCore.Functions.Notify("This vehicle cannot be located", "error")
end
cb("ok")
end)Prepare the configuration in
shared/config.luaStart the
rhd_garageresource inserver.cfglike the code below:
Enter the game and use the
/garagelistcommand to create and edit garages
Last updated