Skip to content

Commit

Permalink
Revert "feat(client/character): remove spawn code (#648)" (#658)
Browse files Browse the repository at this point in the history
This reverts commit e64f010.
  • Loading branch information
solareon authored Jan 10, 2025
1 parent 2cbfdb1 commit 54d4ae7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/character.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54d4ae7

Please sign in to comment.