Skip to content

Commit

Permalink
rename lockpickFinishSuccessCallback to lockpickSuccessCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-michalak committed Apr 10, 2024
1 parent de438e2 commit f706585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
Expand Down

0 comments on commit f706585

Please sign in to comment.