# alert dialog

## Alert Dialog

<figure><img src="https://share.lvsoft.com.ar/images/JNC3C.png" alt=""><figcaption></figcaption></figure>

***

### How to use:

Client-side using exports

**Example:**

```lua
local alert = exports.lvs_lib:alertDialog({
    header = 'LVS Scripts',
    content = '# Hello there \n **Markdown** `support`!',
    cancel = true
})
-- returns 'confirm' if the player pressed the confirm button, 
-- otherwise if the player pressed the cancel button return will be 'cancel'
print(alert)


-- close de alert
-- force closes the active alert dialog and sets its return data as nil
exports.lvs_lib:closeAlertDialog()
```

***
