# Exports

#### Client Exports

***

<details>

<summary><code>showHud</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-hud']:showHud()
```

{% endcode %}

Shows the entire HUD.

</details>

<details>

<summary><code>hideHud</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-hud']:hideHud()
```

{% endcode %}

Hides the entire HUD.

</details>

<details>

<summary><code>Notify</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-hud']:Notify({ type = 'success', message = 'Hello!', title = 'Title', duration = 3000 })
```

{% endcode %}

Displays a notification on screen. Types: `success`, `error`, `info`, `warning`.

</details>

<details>

<summary><code>Announcement</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-hud']:Announcement({ name = 'Admin', title = 'Server', message = 'Welcome!', duration = 5000 })
```

{% endcode %}

Shows a large announcement notification to the players.

</details>

<details>

<summary><code>HelpNotify</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-hud']:HelpNotify('E', 'Open Trunk')
```

{% endcode %}

Displays a key hint notification on screen.

</details>

<details>

<summary><code>HideHelpNotify</code> </summary>

{% code overflow="wrap" %}

```lua
exports['stg-hud']:HideHelpNotify()
```

{% endcode %}

Hides the currently active help notification.

</details>

<details>

<summary><code>startProgress</code></summary>

```lua
exports['stg-hud']:startProgress(5000, 'Repairing...', {
    freeze = true,
    anim = {
        dict = 'mini@repair',
        lib = 'fixing_a_player'
    },
    prop = 'prop_tool_wrench',
    onFinish = function()
        -- on complete
    end,
    onCancel = function()
        -- on cancel
    end
})
```

Starts a progress bar with optional freeze, animation, prop, and callbacks.

</details>

<details>

<summary><code>cancelProgress</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-hud']:cancelProgress()
```

{% endcode %}

Cancels the currently active progress bar.

</details>

<details>

<summary><code>useNos</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-hud']:useNos()
```

{% endcode %}

Installs nitro on the current or nearby vehicle.

</details>

#### Server Exports

***

<details>

<summary><code>SendAnnouncement</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-hud']:SendAnnouncement(5000, 'Server restart in 5 minutes!', 'System', 'Announcement')
```

{% endcode %}

Broadcasts an announcement to all players from server-side.

</details>
