# Exports

## ‼️ Notify:

### Client-Side

```lua
exports['oct_notify']:Alert(title, message, duration, type, customIcon, iconColor)
```

### Server-Side

```lua
TriggerClientEvent('oct_notify:Alert', source, title, message, duration, type, customIcon, iconColor)
```

## 🔋 Progressbar:

```lua
local success = exports['oct_notify']:progressBar({
    duration  = 5000,              -- how long the bar takes to fill (ms)
    label     = 'Repairing vehicle', -- text shown on the bar
    icon      = 'fa-solid fa-wrench', -- icon next to the text (fontawesome.com)
    iconColor = '#66bb6a',         -- icon color
    canCancel = true,              -- player can press X to cancel
    disable   = {
        move   = true,             -- player cannot move while bar runs
        combat = true,             -- player cannot shoot
    },
    anim = {
        dict = 'mini@repair',      -- animation dictionary
        clip = 'fixing_a_player',  -- animation clip name
    },
})

if success then
    -- bar finished — do something
    exports['oct_notify']:Alert('Done', 'Repair complete!', 3000, 'success')
else
    -- player cancelled or was interrupted
    exports['oct_notify']:Alert('Cancelled', 'Repair cancelled', 3000, 'error')
end
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://octavista-development.gitbook.io/octavista-development/scripts/notify/exports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
