> For the complete documentation index, see [llms.txt](https://ayccoes-assets.gitbook.io/ayccoes-assets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayccoes-assets.gitbook.io/ayccoes-assets/ayc-progressbar/full-example.md). Agents can also search and read this documentation through its [MCP server](https://ayccoes-assets.gitbook.io/ayccoes-assets/~gitbook/mcp).

# Full example

```lua
RegisterCommand('lockpick', function()
    local Types = exports['ayc-progressbar']:GetTypes()

    local success = exports['ayc-progressbar']:Show({
        label = 'Picking the lock...',
        time = 8000,
        variant = Types.Variant.RING_STRIPES,
        color = '#cde6ff',
        canCancel = true,
        useWhileDead = false,
        disable = {
            move = true,
            car = true,
            combat = true
        },
        anim = {
            dict = 'anim@feds@parole_meeting@',
            clip = 'note_taking_loop',
            flag = 49
        },
        prop = {
            model = `prop_tool_box03`,
            bone = 28422,
            pos = vector3(0.1, 0.02, 0.05),
            rot = vector3(0.0, 0.0, 0.0)
        }
    })

    if success then
        print('Lock picked!')
    else
        print('Lockpicking interrupted!')
    end
end, false)
```
