From 40630dbdabbc9c0f1e42ae71ee193c8000e0bb7e Mon Sep 17 00:00:00 2001 From: ArturMichalak Date: Wed, 31 Jul 2024 21:00:42 +0200 Subject: [PATCH] fix(lockpickDoor/hotwire): config verification --- client/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index 1f5f57a..53350eb 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -249,7 +249,7 @@ function public.lockpickDoor(isAdvancedLockedpick, maxDistance, customChallenge) or skillCheckConfig.class[GetVehicleClass(vehicle)] or skillCheckConfig.default - if #skillCheckConfig == 0 or islockpickingProcessLocked then return end -- start of the critical section + if islockpickingProcessLocked then return end -- start of the critical section islockpickingProcessLocked = true -- one call per player at a time CreateThread(function() @@ -304,7 +304,7 @@ function public.hotwire(vehicle, isAdvancedLockedpick, customChallenge) or skillCheckConfig.class[GetVehicleClass(vehicle)] or skillCheckConfig.default - if #skillCheckConfig == 0 or isHotwiringProcessLocked then return end -- start of the critical section + if isHotwiringProcessLocked then return end -- start of the critical section isHotwiringProcessLocked = true -- one call per player at a time CreateThread(function()