Update functions.lua
This commit is contained in:
1 parent
9472271377
commit
99e8afe653
1 file changed
+9
-4
@@ -19,14 +19,19 @@ local dispatch = Config.Dispatch
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
elseif progressbartype == 'qb' then
|
elseif progressbartype == 'qb' then
|
||||||
local test = false
|
local test = false
|
||||||
|
local cancelled = false
|
||||||
QBCore.Functions.Progressbar("drink_something", text, time, false, true, { disableMovement = true, disableCarMovement = true, disableMouse = false, disableCombat = true, disableInventory = true,
|
QBCore.Functions.Progressbar("drink_something", text, time, false, true, { disableMovement = true, disableCarMovement = true, disableMouse = false, disableCombat = true, disableInventory = true,
|
||||||
}, {}, {}, {}, function()-- Done
|
}, {}, {}, {}, function()-- Done
|
||||||
test = true
|
test = true
|
||||||
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
|
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
|
||||||
end)
|
end, function()
|
||||||
Wait(time + 200)
|
cancelled = true
|
||||||
if test then return true else Wait(400) if test then return true end end
|
end)
|
||||||
|
repeat
|
||||||
|
Wait(100)
|
||||||
|
until cancelled or test
|
||||||
|
if test then return true end
|
||||||
else
|
else
|
||||||
print"dude, it literally tells you what you need to set it as in the config"
|
print"dude, it literally tells you what you need to set it as in the config"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user