Skip to main content

ps-mdt

server/dbm.lua
function GetPlayerProperties(cid, cb)
local result = exports.bcs_housing:GetOwnedHomes(cid)
return result
end

Find GetPlayerProperties in server/main.lua, replace the code around it with this

server/main.lua
        local Coords = {}
local Houses = {}
local properties = GetPlayerProperties(person.cid)
for k, v in pairs(properties) do
Coords[#Coords + 1] = v.complex == 'Individual' and v.entry or v.apartment.coords
end
for index = 1, #Coords, 1 do
Houses[#Houses + 1] = {
label = properties[index]["name"],
coords = tostring(Coords[index]["x"] ..
"," .. Coords[index]["y"] .. "," .. Coords[index]["z"]),
}
end
person.properties = Houses