# Usage

## Client Side

#### Export

```lua
exports['gusti-iosnotify']:SendAlert(icon, appname, title, message, time, sound)
```

#### Usage Example

```lua
exports['gusti-iosnotify']:SendAlert('fas fa-info-circle text-info','App Name',"INFORMATION", "Notification message", 5000, 'notify1')
```

<div align="left"><figure><img src="https://295400130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMFT8aGurexPIVgQA1xPf%2Fuploads%2Fer519O4USSKPWlWca9Og%2Finform.png?alt=media&#x26;token=f77fd016-fd44-4a1f-945d-33a92230a71e" alt=""><figcaption></figcaption></figure></div>

```lua
exports['gusti-iosnotify']:SendAlert('far fa-check-circle text-success','Server',"SUCCESS", "Fill in the notification message", 5000, 'notify1')
```

<div align="left"><figure><img src="https://295400130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMFT8aGurexPIVgQA1xPf%2Fuploads%2FaJw5qfkZ3NXyM7G9olnG%2Fsuccess.png?alt=media&#x26;token=eabaf5e2-70b7-42cf-9f53-8d12054459c6" alt=""><figcaption></figcaption></figure></div>

```lua
exports['gusti-iosnotify']:SendAlert('fas fa-exclamation-circle text-danger','Server',"ERROR", "Fill in the notification message", 5000, 'notify1')
```

<div align="left"><figure><img src="https://295400130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMFT8aGurexPIVgQA1xPf%2Fuploads%2F4T3PODbGdZ3WnskU9Zi8%2Ferror.png?alt=media&#x26;token=173e8df7-0732-4d99-a7c0-78110cdb538b" alt=""><figcaption></figcaption></figure></div>

## Server Side

```lua
TriggerClientEvent('gusti-iosnotify:show', source, {
    icon = icon,
    appname = appname,
    title = title,
    message = message,
    time = time,
    sound = sound
})
```

#### Usage Example

```lua
TriggerClientEvent('gusti-iosnotify:show', source, {
    icon = 'fas fa-info-circle text-info',
    appname = 'App Name',
    title = 'Title Here',
    message = 'Notification message',
    time = 5000,
    sound = 'notify1'
})
```

<div align="left"><figure><img src="https://295400130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMFT8aGurexPIVgQA1xPf%2Fuploads%2FCyuKMhAvvxMaRCkh7Qx3%2Fserver-side.png?alt=media&#x26;token=19bbc824-bb87-44b0-ad64-c2aa4c9e29fb" alt=""><figcaption></figcaption></figure></div>

## Icon

You can look for icon references from font-awesome

* [font-awesome v5.14.0](https://fontawesome.com/v5/search?m=free)

## Type Text

There can use type text like

* text-primary
* text-secondary
* text-info
* text-success
* text-danger
* text-warning
* and many more

{% hint style="info" %}
You can see the type text [here](https://cdn.jsdelivr.net/npm/@alphardex/aqua.css@1.5.5/dist/aqua.min.css)
{% endhint %}

## Sound

There are three types of default notification sounds from gusti-iosnotify

* default
* notify1
* notify2

{% hint style="info" %}
you can add new sound to `html/sound`
{% endhint %}
