diff --git a/fxmanifest.lua b/fxmanifest.lua index 9259a776..e53bc8ac 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -8,8 +8,7 @@ ui_page 'html/index.html' shared_scripts { 'config.lua', - '@qb-apartments/config.lua', - '@qb-garages/config.lua', + '@qb-apartments/config.lua' } client_scripts { @@ -31,4 +30,4 @@ files { 'html/img/apps/*.png', } -lua54 'yes' \ No newline at end of file +lua54 'yes' diff --git a/server/main.lua b/server/main.lua index 6ce6e1d3..6b30ef81 100644 --- a/server/main.lua +++ b/server/main.lua @@ -228,15 +228,6 @@ QBCore.Functions.CreateCallback('qb-phone:server:GetPhoneData', function(source, local garageresult = MySQL.query.await('SELECT * FROM player_vehicles WHERE citizenid = ?', {Player.PlayerData.citizenid}) if garageresult[1] ~= nil then - for _, v in pairs(garageresult) do - local vehicleModel = v.vehicle - if (QBCore.Shared.Vehicles[vehicleModel] ~= nil) and (Config.Garages[v.garage] ~= nil) then - v.garage = Config.Garages[v.garage].label - v.vehicle = QBCore.Shared.Vehicles[vehicleModel].name - v.brand = QBCore.Shared.Vehicles[vehicleModel].brand - end - - end PhoneData.Garage = garageresult end