qb-phone support
Navigate to qb-phone/fxmanifest.lua and replace:
shared_scripts {
'config.lua',
'@qb-apartments/config.lua',
'@qb-garages/config.lua',
}With:
shared_scripts {
'config.lua',
'@qb-apartments/config.lua',
}Then, on qb-phone/server/main.lua, around the line 230, replace:
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
endWith:
Now, go to qb-phone/client/main.lua and replace the code around the line 302:
With:
Then, on okokGarage/sv_utils.lua, around the line 348, before the
function tablelength(T)add:
Last updated