> For the complete documentation index, see [llms.txt](https://tgiann.gitbook.io/tgiann/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tgiann.gitbook.io/tgiann/scripts/tgiann-gps/client-exports.md).

# Client Exports

## ConnectedAnyChannel

Returns true if connected to a channel

```lua
exports["tgiann-gps"]:ConnectedAnyChannel()
```

## CanConnectChannel

```lua
exports["tgiann-gps"]:CanConnectChannel(data)
```

#### Parameters :

<table><thead><tr><th>Name</th><th width="517">Type</th><th>Description</th></tr></thead><tbody><tr><td>data</td><td>table</td><td>itemIndex: int*<br>channel: string*<br>password: string or nil</td></tr></tbody></table>

#### Example

<pre class="language-lua"><code class="lang-lua">local data = {
  itemIndex = 1,
  channel = "22.0",
  password = nil,
}

<strong>exports["tgiann-gps"]:CanConnectChannel(data)
</strong></code></pre>

***

## DisconnectChannel

```lua
exports["tgiann-gps"]:DisconnectChannel()
```

***

## ChangeCode

```lua
exports["tgiann-gps"]:ChangeCode(codeName)
```

#### Parameters :

<table><thead><tr><th width="175">Name</th><th width="283">Type</th><th>Description</th></tr></thead><tbody><tr><td>codeName</td><td>string</td><td>Player's gps code name</td></tr></tbody></table>

#### Example

```lua
exports["tgiann-gps"]:ChangeCode("A1")
```
