# APPS

You can set which apps will be shown default in phone

<figure><img src="https://3808595786-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWtp2CzACAMvuPWbeJ3cy%2Fuploads%2FRDrFjU6eRUCPt3WhmmJ9%2Fimage.png?alt=media&#x26;token=e5cc781b-af23-4d02-9457-d70e1fbae0b2" alt=""><figcaption><p>Example</p></figcaption></figure>

And you can also add app with export

{% tabs %}
{% tab title="Server Side" %}
* playerId `number`
* app `string`
* notify `table`

```lua
exports['piotreq_phone']:addApp(playerId, app, notify)
```
{% endtab %}
{% endtabs %}

Usage Example

```lua
local hasApp = hasApp(source, 'onion')
if not hasApp then
    addApp(source, 'onion', {
        send = 'phone', -- phone / normal (phone notify, normal notify)
        title = 'Onion',
        time = 'Now',
        text = 'Added new app',
        type = 'onion',
    })
end
```
