Progressbar
Export
RegisterCommand("testprogressbar", function()
local name = "test"
local duration = 5000
local label = "Preparing the smoke"
Citizen.Wait(1500)
exports['progressbar']:Progress({
name = name:lower(),
duration = duration,
label = label,
}, function(cancelled)
if not cancelled then
--ClearPedTasksImmediately(PlayerPedId())
TaskStartScenarioInPlaceHash(PlayerPedId(), joaat("WORLD_HUMAN_SMOKE_CARRYING"), 0, true, 0, 0, false)
exports['cas-notification']:addNotification("You're smoking right now!", "success", 5000)
else
if onCancel then
end
end
end)
end)
Last updated