Skip to content

Commit

Permalink
fix(game/customization): check player is not switching in startPlayer…
Browse files Browse the repository at this point in the history
…Customization (#442)
  • Loading branch information
thelindat committed Jul 21, 2024
1 parent 6967f9d commit 0f1eb8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/customization.lua
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ function client.getHeading() return playerHeading end

local callback
function client.startPlayerCustomization(cb, conf)
repeat Wait(0) until IsScreenFadedIn() and not IsPlayerTeleportActive() and GetPlayerSwitchState() == 12
repeat Wait(0) until IsScreenFadedIn() and not IsPlayerTeleportActive() and not IsPlayerSwitchInProgress()

playerAppearance = client.getPedAppearance(cache.ped)
playerCoords = GetEntityCoords(cache.ped, true)
Expand Down

0 comments on commit 0f1eb8f

Please sign in to comment.