diff --git a/game/customization.lua b/game/customization.lua index 18c5f14..f5d1fc3 100644 --- a/game/customization.lua +++ b/game/customization.lua @@ -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)