> For the complete documentation index, see [llms.txt](https://creativeteam.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://creativeteam.gitbook.io/docs/home/ct-interface/exports/notify.md).

# Notify

{% code overflow="wrap" lineNumbers="true" fullWidth="true" %}

```lua
exports['cT-Interface']:Notify(text, type) 
```

{% endcode %}

<div data-full-width="false"><figure><img src="https://584812713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkXDzEvWp3zPsMQoeqahF%2Fuploads%2F2rSEUro7mcvYxxfnVb9q%2Fprimary.PNG?alt=media&amp;token=0f49ce9f-b4e1-4a60-8ee3-a7d21469c8ff" alt=""><figcaption><p>This is a 'primary' type.</p></figcaption></figure></div>

<figure><img src="https://584812713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkXDzEvWp3zPsMQoeqahF%2Fuploads%2FXgg2RWG95heEx9Uq7kRn%2Fsec.PNG?alt=media&amp;token=a0d84395-e083-473b-a59b-773b48a92977" alt=""><figcaption><p>This is a 'info' type.</p></figcaption></figure>

<div data-full-width="false"><figure><img src="https://584812713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkXDzEvWp3zPsMQoeqahF%2Fuploads%2FeCmbyCnj2GIrvnDlDSOu%2Fsuccess.PNG?alt=media&amp;token=34232904-af20-4d5d-8867-9d6155579721" alt=""><figcaption><p>this is a 'success' type.</p></figcaption></figure></div>

<figure><img src="https://584812713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkXDzEvWp3zPsMQoeqahF%2Fuploads%2FrNY8Nokm9DIZuiRI0ZYI%2Ferror.PNG?alt=media&amp;token=c3e10ea6-9f40-4d90-bef6-dc1298523c7d" alt=""><figcaption><p>This is a 'error' type.</p></figcaption></figure>

<div align="center"><figure><img src="https://584812713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkXDzEvWp3zPsMQoeqahF%2Fuploads%2FCZRzJ0SoQ0dhlfYaOJId%2Fimage.png?alt=media&amp;token=3aa7a247-fbab-434b-80d0-5e6046419290" alt=""><figcaption><p>This is a 'warn' type.</p></figcaption></figure></div>

{% code title="A command for test." overflow="wrap" lineNumbers="true" fullWidth="true" %}

```lua
local Array  = {
    {text = "This is a primary notification", type = "primary"},
    {text = "This is a info notification", type = "info"},
    {text = "This is a success notification", type = "success"},
    {text = "This is a error notification", type = "error"},
    {text = "This is a warn notification", type = "warn"},
}

RegisterCommand('TestNotify', function() 
    for i, v in pairs(Array) do
        exports['cT-Interface']:Notify(v.text, v.type)
    end
end)
```

{% endcode %}
