πProgressbar
Last updated
Last updated
RegisterCommand("testprogress", function(source, args, rawCommand)
local data = {
icon = "fa-solid fa-hammer",
label = "Sample progress...",
time = 5,
animation = {
dict = "amb@world_human_hammering@male@base",
name = "base"
},
inputBlock = {
keys = {"W", "A", "S", "D"}
},
cancelable = true
}
exports["KOJA_HUD"]:startProgressbar(data, function(isDone)
if isDone then
print("Progressbar completed successfully!")
else
print("Progressbar was canceled!")
end
end)
end, false)