---
description: >-
  ESX / QB | Fully Customizable | 0.02ms (Best Optimize) | Full Responsive UI
  (4k Supported) | Car Nitro System | Notifications System
---

# 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>

