Skip to main content

DRX MDT

For drx_mdt integration you can add the file bcs_housing.lua in the drx/mdt/server/bridge/property/ folder

drx_mdt/server/bridge/property/bcs_housing.lua
if GetResourceState('bcs_housing') ~= 'started' then return end

Property = {
---@param identifier string The player framework identifier
getPropertiesByIdentifier = function(identifier)
local properties = {}
local owned = exports.bcs_housing:GetOwnedHomeKeys(identifier)
for _, value in pairs(owned) do
local entry = value.complex == 'Flat' and value.data.flat.coords or value.entry
properties[#properties + 1] = {
coords = vec3(entry.x, entry.y, entry.z),
name = value.identifier,
label = value.name
}
end

return properties
end,

Locations = {}
}