πŸ…ΏοΈRHD Garage

This is an ESX and QBCore compatible garage script, made with love by the RHD team.

Installation:

  1. Run SQL according to the framework you use

  2. If you use QB-Phone then you have to change several codes as below

  1. client/main.lua line:302

PhoneData.GarageVehicles = exports.rhd_garage:getvehForPhone()
  1. 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)
  1. Prepare the configuration in shared/config.lua

  2. Start the rhd_garage resource in server.cfg like the code below:

ensure ox_lib
ensure es_extended
ensure rhd_garage
  1. Enter the game and use the /garagelist command to create and edit garages

Last updated