สำหรับการเริ่มใช้งาน Progress Bar

Dependecies

Start Progress

self:startProgress({
    name            = 'progress-name',
    label           = 'Progress Is Working',
    duration        = 10000,
    canCancel       = true,
    canTakeDamage   = false,
    animation       = {                         --[[ Optional ]]
        clip        = 'animation-clip-name',
        name        = 'animation-name-of-clip',
        flag        = 1
    },
    prop            = {                         --[[ Optional ]]
        model       = 'model-name',
        bone        = 36029,
        coords      = vec3(0.0, 0.0, 0.0),
        rotation    = vec3(0.0, 0.0, 0.0)
    },
    onCompleted     = function()                --[[ Optional ]]
        print('Completed')
    end,
    onCancelled = function()                    --[[ Optional ]]
        print('Cancelled')
    end,
    addons              = {                     --[[ Optional ]]
        useWhileDead    = false,                --[[ Optional ]]
        controlDisables = {                     --[[ Optional ]]
            disableMovement     = true,
            disableCarMovement  = true,
            disableMouse        = false,
            disableCombat       = true
        }
    }
}, false)
self:startProgress(object, async?)

Paramaters

object
table
required
async
boolean
default:true
จะให้ Progress ทำงานแบบ Async หรือไม่ ถ้าหากไม่ต้องรอ Progress ทำงานเสร็จถึงจะทำงานโค้ดถัดไป

Return

Boolean?