π ΏοΈ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)
Prepare the configuration in
shared/config.lua
Start the
rhd_garage
resource inserver.cfg
like the code below:
ensure ox_lib
ensure es_extended
ensure rhd_garage
Enter the game and use the
/garagelist
command to create and edit garages
Last updated