-- line 302
PhoneData.GarageVehicles = exports.rhd_garage:getvehForPhone()
-- 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)
-- line 21
RegisterNUICallback('SetupGarageVehicles', function(_, cb)
vehicles = exports.rhd_garage:getvehForPhone()
end)
-- 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)