From 0f1eb8f9281c0924c5f872776622d6481c64ae03 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Mon, 22 Jul 2024 04:44:41 +1000 Subject: [PATCH] fix(game/customization): check player is not switching in startPlayerCustomization (#442) --- game/customization.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)