Tutorial

  1. Go to qb-apartments client/main.lua, to this event 'apartments:client:setupSpawnUI'

  2. replace it with this

RegisterNetEvent('apartments:client:setupSpawnUI', function(cData) QBCore.Functions.TriggerCallback('apartments:GetOwnedApartment', function(result) if result then TriggerEvent('qb-spawn:client:setupSpawns', cData, false, nil) TriggerEvent("apartments:client:SetHomeBlip", result.type) else if Apartments.Starting then TriggerEvent('qb-spawn:client:setupSpawns', cData, true, Apartments.Locations) TriggerEvent('qb-spawn:client:openUI', true) else TriggerEvent('qb-spawn:client:setupSpawns', cData, false, nil) TriggerEvent('qb-spawn:client:openUI', true) end end end, cData.citizenid) end)

  1. go to qb-spawn client and go to this event 'qb-spawn:client:setupSpawns'

  2. replace it with tihs

RegisterNetEvent('qb-spawn:client:setupSpawns', function(cData, new, apps) if not new then TriggerEvent('qb-spawnselector:set') elseif new then SendNUIMessage({ action = "setupAppartements", locations = apps, }) end end)

Discord: https://discord.com/invite/WDUFUMHsKR