How is it installed ?
Remove the qb-spawn dependency from the fxmanifest.lua in qb-multicharacter
Manual installation: QBCore (qb-apartments)
qb-apartments/config.lua
UI = {Left = 12.85, Top = 27.95},
You need to specify where each apartment location will appear in the UI
Example;
Apartments.Locations = {
["apartment1"] = {
name = "apartment1",
label = "South Rockford Drive",
UI = {Left = 12.85, Top = 27.95},
coords = {
enter = vector4(-667.02, -1105.24, 14.63, 242.32),
},
polyzoneBoxData = {
heading = 245,
minZ = 13.5,
maxZ = 16.0,
debug = false,
length = 1,
width = 3,
distance = 2.0,
created = false
}
},
["apartment2"] = {
name = "apartment2",
label = "Morningwood Blvd",
UI = {Left = 21.5, Top = 35},
coords = {
enter = vector4(-1288.52, -430.51, 35.15, 124.81),
},
polyzoneBoxData = {
heading = 124,
minZ = 34.0,
maxZ = 37.0,
debug = false,
length = 1,
width = 3,
distance = 2.0,
created = false
}
},
["apartment3"] = {
name = "apartment3",
label = "Integrity Way",
UI = {Left = 27.1, Top = 41.8},
coords = {
enter = vector4(269.73, -640.75, 42.02, 249.07),
},
polyzoneBoxData = {
heading = 250,
minZ = 40,
maxZ = 43.5,
debug = false,
length = 1,
width = 1,
distance = 2.0,
created = false
}
},
["apartment4"] = {
name = "apartment4",
label = "Tinsel Towers",
UI = {Left = 50.7, Top = 51.1},
coords = {
enter = vector4(-619.29, 37.69, 43.59, 181.03),
},
polyzoneBoxData = {
heading = 180,
minZ = 41.0,
maxZ = 45.5,
debug = false,
length = 1,
width = 2,
distance = 2.0,
created = false
}
},
["apartment5"] = {
name = "apartment5",
label = "Fantastic Plaza",
UI = {Left = 46.05, Top = 16.45},
coords = {
enter = vector4(291.517, -1078.674, 29.405, 270.75),
},
polyzoneBoxData = {
heading = 270,
minZ = 28.5,
maxZ = 31.0,
debug = false,
length = 1,
width = 2,
distance = 2.0,
created = false
}
},
}
Last updated