From 54d4ae77f4f6de6ca2acdd957af8c45125651507 Mon Sep 17 00:00:00 2001 From: Solareon <769465+solareon@users.noreply.github.com> Date: Fri, 10 Jan 2025 15:05:21 -0700 Subject: [PATCH] Revert "feat(client/character): remove spawn code (#648)" (#658) This reverts commit e64f010a44b696fedd13ee81c91cb43cb6a5abe2. --- client/character.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/character.lua b/client/character.lua index e291c3ff8..159c2243f 100644 --- a/client/character.lua +++ b/client/character.lua @@ -437,8 +437,11 @@ local function chooseCharacter() onSelect = function() DoScreenFadeOut(10) lib.callback.await('qbx_core:server:loadCharacter', false, character.citizenid) - if GetResourceState('qbx_spawn'):find('start') then + if GetResourceState('qbx_apartments'):find('start') then + TriggerEvent('apartments:client:setupSpawnUI', character.citizenid) + elseif GetResourceState('qbx_spawn'):find('start') then TriggerEvent('qb-spawn:client:setupSpawns', character.citizenid) + TriggerEvent('qb-spawn:client:openUI', true) else spawnLastLocation() end