# Integrations

## Client Exports

<details>

<summary>Notification</summary>

```lua
exports['ZZZ_HudV2']:sendNotification(type, title, message, duration) -- Standard color
exports['ZZZ_HudV2']:sendNotification(type, title, message, duration, color) -- Custom color as HEX

-- Examples:
exports['ZZZ_HudV2']:sendNotification("info", "INFO TITLE", "This is a test.", 5*1000) -- 5 seconds
exports['ZZZ_HudV2']:sendNotification("custom", "CUSTOM TITLE", "This is a test.", 3*1000, "#f8117d") -- 3 seconds
```

</details>

<details>

<summary>Progressbar</summary>

```lua
exports['ZZZ_HudV2']:sendProgressbar(message, duration) -- Standard color
exports['ZZZ_HudV2']:sendProgressbar(message, duration, color) -- Custom color as HEX

-- Examples:
exports['ZZZ_HudV2']:sendProgressbar("This is a test.", 2*1000) -- 2 seconds
exports['ZZZ_HudV2']:sendProgressbar("This is a test.", 10*1000, "#f8117d") -- 10 seconds
```

</details>

<details>

<summary>Cancel Progressbars</summary>

```lua
exports['ZZZ_HudV2']:cancelProgressbars() -- Remove directly all progressbars
```

</details>

<details>

<summary>HUD</summary>

```lua
exports['ZZZ_HudV2']:toggleHUD(status) -- Toggles the HUD

-- Examples:
exports['ZZZ_HudV2']:toggleHUD(true) -- Enables the HUD
exports['ZZZ_HudV2']:toggleHUD(false) -- Disables the HUD
```

</details>

<details>

<summary>Left HUD</summary>

```lua
exports['ZZZ_HudV2']:toggleLeftHUD(status) -- Toggles the left HUD

-- Examples:
exports['ZZZ_HudV2']:toggleLeftHUD(true) -- Enables the left HUD
exports['ZZZ_HudV2']:toggleLeftHUD(false) -- Disables the left HUD
```

</details>

<details>

<summary>Help Notification</summary>

```lua
exports['ZZZ_HudV2']:sendHelpNotification(key, text) -- Show help notification

-- Example:
exports['ZZZ_HudV2']:sendHelpNotification("E", "Toggle Phone") -- Enables the left HUD
```

</details>

## Server Exports

<details>

<summary>Marry Announcement</summary>

<pre class="language-lua"><code class="lang-lua"><strong>TriggerServerEvent("ZZZ_HudV2:sendMarryAnnouncement", person1, person2)
</strong>
-- Examples:
TriggerServerEvent("ZZZ_HudV2:sendMarryAnnouncement", "Simon Teiler", "Hans Smith")
</code></pre>

</details>

<details>

<summary>Announcement</summary>

```lua
TriggerServerEvent("ZZZ_HudV2:sendAnnouncement", message, duration) -- Standard color
TriggerServerEvent("ZZZ_HudV2:sendAnnouncement", message, duration, color) -- Custom color as HEX.

-- Examples:
TriggerServerEvent("ZZZ_HudV2:sendAnnouncement", "Your message.", 10*1000) -- 10 seconds
TriggerServerEvent("ZZZ_HudV2:sendAnnouncement", "Your message.", 5*1000, "") -- 5 seconds
```

</details>

## Export Arguments

<table data-view="cards" data-full-width="false"><thead><tr><th align="center">name</th><th align="center">type</th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td align="center">message</td><td align="center">string</td><td><a href="https://880125350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIthW8L5k7t7P0dwOJkdx%2Fuploads%2FR0dVGDSqSfXfN3sxoMgS%2Fzzz_banner_standard_extra.png?alt=media&#x26;token=0de0d34f-e25d-48a8-beb7-4f142886031a">zzz_banner_standard_extra.png</a></td></tr><tr><td align="center">duration</td><td align="center">int</td><td><a href="https://880125350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIthW8L5k7t7P0dwOJkdx%2Fuploads%2FR0dVGDSqSfXfN3sxoMgS%2Fzzz_banner_standard_extra.png?alt=media&#x26;token=0de0d34f-e25d-48a8-beb7-4f142886031a">zzz_banner_standard_extra.png</a></td></tr><tr><td align="center">color</td><td align="center">string</td><td><a href="https://880125350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIthW8L5k7t7P0dwOJkdx%2Fuploads%2FR0dVGDSqSfXfN3sxoMgS%2Fzzz_banner_standard_extra.png?alt=media&#x26;token=0de0d34f-e25d-48a8-beb7-4f142886031a">zzz_banner_standard_extra.png</a></td></tr><tr><td align="center">person1/person2</td><td align="center">string</td><td><a href="https://880125350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIthW8L5k7t7P0dwOJkdx%2Fuploads%2FR0dVGDSqSfXfN3sxoMgS%2Fzzz_banner_standard_extra.png?alt=media&#x26;token=0de0d34f-e25d-48a8-beb7-4f142886031a">zzz_banner_standard_extra.png</a></td></tr><tr><td align="center">title</td><td align="center">string</td><td><a href="https://880125350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIthW8L5k7t7P0dwOJkdx%2Fuploads%2FR0dVGDSqSfXfN3sxoMgS%2Fzzz_banner_standard_extra.png?alt=media&#x26;token=0de0d34f-e25d-48a8-beb7-4f142886031a">zzz_banner_standard_extra.png</a></td></tr><tr><td align="center">type</td><td align="center">string</td><td><a href="https://880125350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIthW8L5k7t7P0dwOJkdx%2Fuploads%2FR0dVGDSqSfXfN3sxoMgS%2Fzzz_banner_standard_extra.png?alt=media&#x26;token=0de0d34f-e25d-48a8-beb7-4f142886031a">zzz_banner_standard_extra.png</a></td></tr><tr><td align="center">status</td><td align="center">boolean</td><td><a href="https://880125350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIthW8L5k7t7P0dwOJkdx%2Fuploads%2FR0dVGDSqSfXfN3sxoMgS%2Fzzz_banner_standard_extra.png?alt=media&#x26;token=0de0d34f-e25d-48a8-beb7-4f142886031a">zzz_banner_standard_extra.png</a></td></tr></tbody></table>
