From 0dbd3976f2d482770ba672f0de186ffc6e45881f Mon Sep 17 00:00:00 2001 From: Fraser Watt <28698343+FrazzIe@users.noreply.github.com> Date: Sun, 1 Mar 2020 21:09:10 +0000 Subject: [PATCH] fix being able to double down with a split hand --- client.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.lua b/client.lua index 064132d..cadc0fb 100644 --- a/client.lua +++ b/client.lua @@ -934,7 +934,7 @@ AddEventHandler("BLACKJACK:RequestMove", function(_timeLeft) ScaleformMovieMethodAddParamPlayerNameString("Stand") EndScaleformMovieMethod() - if #hand < 3 then + if #hand < 3 and #splitHand == 0 then BeginScaleformMovieMethod(scaleform, "SET_DATA_SLOT") ScaleformMovieMethodAddParamInt(3) ScaleformMovieMethodAddParamPlayerNameString(GetControlInstructionalButton(1, 192, 0)) @@ -1014,7 +1014,7 @@ AddEventHandler("BLACKJACK:RequestMove", function(_timeLeft) return end - if IsControlJustPressed(1, 192) and #hand == 2 then + if IsControlJustPressed(1, 192) and #hand == 2 and #splitHand == 0 then if leavingBlackjack == true then leaveBlackjack() return end TriggerServerEvent("BLACKJACK:CheckPlayerBet", g_seat, bet)