> For the complete documentation index, see [llms.txt](https://docs.hyper-code.eu/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyper-code.eu/documentation/advanced-notification/general.md).

# General

<details>

<summary>Notification</summary>

### Client Events

How to trigger the Notification in any of your ressource.

```lua
TriggerEvent('hc_notify:notify', message, title, notifyType, time)
```

#### Client

```lua
TriggerEvent('hc_notify:notify', "You unlocked your car", "Car Systen", "success", 3000)
```

#### Server

```lua
TriggerClientEvent('hc_notify:notify', source, "You dont have enough permissions!", "Admin System", "error", 3000)
```

### Exports

```lua
exports["hc_notify"]:notify(message, title, notifyType, time)
```

</details>

<details>

<summary>Help Notification</summary>

### Client Events

How to trigger the Notification in any of your ressource.

```lua
TriggerEvent('hc_notify:helpNotify', message, key, time)
```

### Examples

Here you can see, how your Events could look like.

#### Client

```lua
TriggerEvent('hc_notify:helpNotify', "Open Crafting Menu", "E", -1)
```

#### Server

```lua
TriggerClientEvent('hc_notify:helpNotify', source, "Start Farming", "E", -1)
```

### Exports

```lua
exports["hc_notify"]:helpNotify(message, key, time)
```

</details>

<details>

<summary>Progressbar</summary>

### Client Events

How to trigger the Progressbar in any of your ressource. The cb option (callback) is not required.

```lua
TriggerEvent("hc_notify:progressbar", text, time, cb)
```

### Examples

Here you can see, how your Events could look like.

#### Client

```lua
TriggerEvent("hc_notify:progressbar", "Collecting Apples", 5000)
```

#### With Callback

```lua
TriggerEvent('hc_notify:progressbar', "Collecting Apples", 3000, function() 
   print("Progessbar finished") 
end) 
```

#### Server

```lua
TriggerClientEvent("hc_notify:progressbar", source, "Collecting Apples", 7000)
```

### Exports

```lua
exports["hc_notify"]:drawBar(text, time, cb)
```

</details>

<details>

<summary>Announcement</summary>

### Client Events

How to trigger a announcement in any of your ressource.&#x20;

```lua
TriggerEvent("hc_notify:announce", message, title, time)
```

### Examples

Here you can see, how your Events could look like.

#### Client

```lua
TriggerEvent("hc_notify:announce", "Server restarts in 10 minutes", "Server Restart", 5000)
```

#### With Callback

```lua
TriggerEvent('hc_notify:announce', "Server restarts in 10 minutes", "Server Restart", 3000)
```

#### Server

```lua
TriggerClientEvent("hc_notify:announce", source, "Server restarts in 10 minutes", "Server Restart", 3000)
```

### Exports

```lua
exports["hc_notify"]:announce(text, title, time)
```

</details>
