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