> For the complete documentation index, see [llms.txt](https://cylexdev.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://cylexdev.gitbook.io/docs/cylex-phone/exports-and-events/client-exports/main.md).

# Main

## setApp

```lua
-- appName: string - app name

-- Sets current app
exports['cylex_phone']:setApp(appName)
```

#### IsOpen  <a href="#user-content-isopen-client-side" id="user-content-isopen-client-side"></a>

```lua
-- return: boolean

-- Checks if the player currently has their phone open (visible on screen).
-- Returns true if open, false if closed.

local isPhoneOpen = exports['cylex_phone']:IsOpen()

if isPhoneOpen then
    print("Player is currently looking at their phone.")
else
    print("Phone is closed.")
end
```

#### GetConfig  <a href="#user-content-getconfig-client-side" id="user-content-getconfig-client-side"></a>

```lua
-- return: table - The full configuration table of the phone

-- Retrieves the entire Config table defined in shared/config.lua 
-- Useful if you need to access phone settings (like screen position, keys, etc.) from another script.

local phoneConfig = exports['cylex_phone']:GetConfig()

print("The default phone opening key is: " .. phoneConfig.OpenKey)
```
