From fed8cf28040c78b7b2bdce1291df5e029c953f0f Mon Sep 17 00:00:00 2001 From: Mustache Dom <123716453+Mustachedom@users.noreply.github.com> Date: Sat, 29 Jun 2024 18:59:36 -0700 Subject: [PATCH] Update functions.lua --- client/functions.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index 424d043..16e7588 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -5,13 +5,13 @@ local minigametype = Config.minigametype local notifytype = Config.Notify local dispatch = Config.Dispatch - function progressbar(text, time, anim) +function progressbar(text, time, anim) TriggerEvent('animations:client:EmoteCommandStart', {anim}) if progressbartype == 'oxbar' then if lib.progressBar({ duration = time, label = text, useWhileDead = false, canCancel = true, disable = { car = true, move = true},}) then TriggerEvent('animations:client:EmoteCommandStart', {"c"}) if GetResourceState('scully_emotemenu') == 'started' then - exports.scully_emotemenu:cancelEmote + exports.scully_emotemenu:cancelEmote() end return true end @@ -19,7 +19,7 @@ local dispatch = Config.Dispatch if lib.progressCircle({ duration = time, label = text, useWhileDead = false, canCancel = true, position = 'bottom', disable = { car = true,move = true},}) then TriggerEvent('animations:client:EmoteCommandStart', {"c"}) if GetResourceState('scully_emotemenu') == 'started' then - exports.scully_emotemenu:cancelEmote + exports.scully_emotemenu:cancelEmote() end return true end @@ -31,12 +31,12 @@ local dispatch = Config.Dispatch test = true TriggerEvent('animations:client:EmoteCommandStart', {"c"}) if GetResourceState('scully_emotemenu') == 'started' then - exports.scully_emotemenu:cancelEmote + exports.scully_emotemenu:cancelEmote() end end, function() cancelled = true if GetResourceState('scully_emotemenu') == 'started' then - exports.scully_emotemenu:cancelEmote + exports.scully_emotemenu:cancelEmote() end end) repeat