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

# Client

### Exports

1. The specified export opens the Trading Port NUI.

```lua
exports.tp_trading_port:OpenTradingNUI() 
```

2. Get player data of the player client related to the Trading Port script.

```lua
--- @param data - returns a table form.
--- @param data.Level - returns an integer value
--- @param data.LevelExperience - returns an integer value
--- @param data.HasOrderPickup - returns a boolean value (true / false)
--- @param data.IsBusy - returns a boolean value (true / false)
--- @param data.CurrentDay - returns a string
--- @param data.CurrentMonth - returns a string
local data = exports.tp_trading_port:GetPlayerData()
```

3. Get if the player is nearby to the trading port office location.

```lua
--- @param isNearby - returns a boolean value (true / false)
local isNearby = exports.tp_trading_port:IsNearbyOfficeLocation()
```

4. Get if the player is doing pickup order process (Can also be checked by `GetPlayerData` export).

```lua
--- @param isInOrderPickup- returns a boolean value (true / false)
local isInOrderPickup = exports.tp_trading_port:IsInOrderPickup()
```
