Skip to content

Commit

Permalink
feat(client/character): remove spawn code
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Dec 25, 2024
1 parent f95bc2d commit 90ae56e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/character.lua
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,8 @@ local function chooseCharacter()
onSelect = function()
DoScreenFadeOut(10)
lib.callback.await('qbx_core:server:loadCharacter', false, character.citizenid)
if GetResourceState('qbx_apartments'):find('start') then
TriggerEvent('apartments:client:setupSpawnUI', character.citizenid)
elseif GetResourceState('qbx_spawn'):find('start') then
if 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 90ae56e

Please sign in to comment.