From f70658525afaf38bb7c8d9d07fbf15cbd3c7a65a Mon Sep 17 00:00:00 2001 From: ArturMichalak Date: Wed, 10 Apr 2024 21:57:23 +0200 Subject: [PATCH] rename lockpickFinishSuccessCallback to lockpickSuccessCallback --- client/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index 67313a0..9b4df0f 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -105,7 +105,7 @@ end --- The function will be execuded when the opening of the lock succeeds. --- @param vehicle number The entity number of the vehicle. --- @param plate string The plate number of the vehicle. -local function lockpickFinishSuccessCallback(vehicle, plate) +local function lockpickSuccessCallback(vehicle, plate) TriggerServerEvent('hud:server:GainStress', math.random(1, 4)) if cache.seat == -1 then @@ -127,7 +127,7 @@ local function lockpickCallback(vehicle, plate, isAdvancedLockedpick, maxDistanc --- the action will be aborted if the ped has moved away from the vehicle driver door frame. if not isVehicleInRange(vehicle, maxDistance) then return end if isSuccess then - lockpickFinishSuccessCallback(vehicle, plate) + lockpickSuccessCallback(vehicle, plate) else -- if player fails quickevent public.attemptPoliceAlert('carjack') TriggerServerEvent('hud:server:GainStress', math.random(1, 4))