Progressbar

Displays the progress of the action being performed.

displayProgress

exports["UrantixInterface"]:displayProgress({
    name = "random_task",
    duration = 15000,
    text = "Doing something...",
    useWhileDead = false,
    canCancel = true,
    controlDisables = {
        disableMovement = false,
        disableCarMovement = false,
        disableMouse = false,
        disableCombat = true,
    },
    animation = {
        animDict = "missheistdockssetup1clipboard@base",
        anim = "pill",
        flags = 49,
    },
    prop = {
        model = 'prop_notepad_01',
        bone = 18905, -- Right hand
        coords = vec3(0.1, 0.02, 0.05),
        rotation = vec3(10.0, 0.0, 0.0),
    },
    propTwo = {
        model = 'prop_pencil_01',
        bone = 58866, -- Left hand
        coords = vec3(0.11, -0.02, 0.001),
        rotation = vec3(-120.0, 0.0, 0.0),
    }
}, function(cancelled)
    if not cancelled then
        print('finish')
    else
        print('cancel')
    end
end)

Last updated