Are you using QBCore qb-apartments and you have Config.UsingDefaultQBApartments = true on ps-mdt and you have also Apartments.Starting = false on qb-apartments, then definitely you will get an error and this is the fix!
go to ps-mdt/server/main.lua and look for
apartmentData = apartmentData[1].label .. ' (' ..apartmentData[1].name..')'
end```
and replace it by these lines
```if Config.UsingDefaultQBApartments and apartmentData then
if apartmentData[1] then
apartmentData = apartmentData[1].label .. ' (' .. apartmentData[1].name .. ')'
else
apartmentData = "No apartment data available"
end
end```