Update functions.lua
This commit is contained in:
1 parent
4d9b613823
commit
930c1e5518
1 file changed
+12
@@ -10,11 +10,17 @@ local dispatch = Config.Dispatch
|
|||||||
if progressbartype == 'oxbar' then
|
if progressbartype == 'oxbar' then
|
||||||
if lib.progressBar({ duration = time, label = text, useWhileDead = false, canCancel = true, disable = { car = true, move = true},}) then
|
if lib.progressBar({ duration = time, label = text, useWhileDead = false, canCancel = true, disable = { car = true, move = true},}) then
|
||||||
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
|
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
|
||||||
|
if GetResourceState('scully_emotemenu') == 'started' then
|
||||||
|
exports.scully_emotemenu:cancelEmote
|
||||||
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
elseif progressbartype == 'oxcir' then
|
elseif progressbartype == 'oxcir' then
|
||||||
if lib.progressCircle({ duration = time, label = text, useWhileDead = false, canCancel = true, position = 'bottom', disable = { car = true,move = true},}) then
|
if lib.progressCircle({ duration = time, label = text, useWhileDead = false, canCancel = true, position = 'bottom', disable = { car = true,move = true},}) then
|
||||||
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
|
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
|
||||||
|
if GetResourceState('scully_emotemenu') == 'started' then
|
||||||
|
exports.scully_emotemenu:cancelEmote
|
||||||
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
elseif progressbartype == 'qb' then
|
elseif progressbartype == 'qb' then
|
||||||
@@ -24,8 +30,14 @@ local dispatch = Config.Dispatch
|
|||||||
}, {}, {}, {}, function()-- Done
|
}, {}, {}, {}, function()-- Done
|
||||||
test = true
|
test = true
|
||||||
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
|
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
|
||||||
|
if GetResourceState('scully_emotemenu') == 'started' then
|
||||||
|
exports.scully_emotemenu:cancelEmote
|
||||||
|
end
|
||||||
end, function()
|
end, function()
|
||||||
cancelled = true
|
cancelled = true
|
||||||
|
if GetResourceState('scully_emotemenu') == 'started' then
|
||||||
|
exports.scully_emotemenu:cancelEmote
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
repeat
|
repeat
|
||||||
Wait(100)
|
Wait(100)
|
||||||
|
|||||||
Reference in new issue
Block a user