🎉 Driving School is released. Read more →
Paid Scripts
Housing
Integrations
MDT Scripts
Ps Mdt

ps-mdt

server/dbm.lua
function GetPlayerProperties(cid, cb)
    local result = exports.bcs_housing:GetOwnedHomeKeys(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 == 'Flat' and v.data.flat.coords or v.entry
		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