> For the complete documentation index, see [llms.txt](https://if-developments.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://if-developments.gitbook.io/docs/resources/hud-v1.md).

# HUD V1

<details>

<summary>Notifications Implementation</summary>

* Export: `exports["if-hud"]:SendNotification(message, duration, type)`
* Event: `TriggerEvent("if-hud:SendNotification", message, duration, type)`

```lua
exports["if-hud"]:SendNotification("Pay attention!", 3000, "info")
```

</details>

<details>

<summary>Progressbar Implementation</summary>

* Export: `exports["if-hud"]:ProgressStart(Message, Duration, Options)`

```lua
exports["if-hud"]:ProgressStart("Performing an action", 3000, {
    FreezePlayer = true, 
    footerMessage = "Searching a sandwich...",
    animation = {
        type = "anim",
        dict = "anim@mp_player_intmenu@key_fob@", 
        lib ="fob_click"
        -- or scenario:
        -- type = "scenario",
        -- Scenario = "PROP_HUMAN_BUM_BIN", 
    },
    onFinish = function()
        --Code here
    end, onCancel = function()
        --Code here
    end
})
```

</details>
