Apartments
Configure starting apartment selection for new characters.
๐ Overview
โ๏ธ Enable Apartments
Config.ApartmentStart = true -- Enable apartment selection for new characters๐ Configuration File
config/apartments.lua๐๏ธ Apartment Structure
local Apartments = {}
Apartments.List = {
['qb-core'] = {
{
id = 'apartment_1',
label = 'South Rockford Drive',
img = 'integrity-way',
icon = 'fa-solid fa-building',
coords = vec4(-667.02, -1105.01, 14.63, 242.32),
},
-- More apartments...
},
['es_extended'] = {
-- ESX apartments...
},
['qbx_core'] = {
-- QBox apartments...
},
}
-- Function called when player selects an apartment
Apartments.SpawnCreateCharacter = function(apartmentType)
-- Integration with your apartment/housing script
end
return Apartmentsโ๏ธ Apartment Properties
Property
Type
Description
๐ฎ Framework-Specific Configuration
QBCore
ESX
๐ง Spawn Function
๐ผ๏ธ Adding Apartment Images
๐ Complete Example
โ Troubleshooting
Apartment Selection Not Showing
Apartment Not Assigned
Last updated