#ps-mdt

5 messages · Page 1 of 1 (latest)

merry wolf
#

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```
vague wagon
#

do PR

velvet kraken
#

Setting to flase will def fix that issue

merry wolf
#

@velvet kraken when it's true, I opened the mdt, if I searched for players with apartments, mdt shows their info, if players do not have apartments, I got server error, I do not remember it.