# Phone app

This registers the **slots lobby UI** as a phone **custom app** from `tgg-slots-server`. Players open it like any other app. Downloadable under the Games section in Addapp application.

## Enable in config

1. Open **`tgg-slots-server/config/config.lua`**.
2. Find **`Config.PhoneApp`**.
3. Set **`enabled = true`**.

Example (adjust display names/icons only if you know what you are doing; **keep `uiUrl` as documented below**):

```lua
local uiBasePath = 'https://cfx-nui-tgg-slots-server/ui/build'
Config.PhoneApp = {
    enabled = true,                    -- must be true to register the app
    appKey = 'tbet',                  
    appName = 'GoldLine',
    description = 'Slots • Lobby',
    game = true,
    defaultApp = false,
    uiUrl = uiBasePath .. '/index.html?embedded=1', -- do not change
    icon = {
        yos = uiBasePath .. '/games/goldline.png',
        humanoid = uiBasePath .. '/games/goldline.png',
    },
}
```

## After changing config

Restart **`tgg-slots-server`** (restarting the whole server is fine).

## Disable

Set **`Config.PhoneApp.enabled = false`** and restart `tgg-slots-server`. The lobby app will not be registered and phone-specific flows stay off.
