> 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/utility-scripts/tp-containers/development-api/client.md).

# Client

### Exports

1. Open custom container by its ID

```lua
--- @param containerId - requires an integer value (The required custom container ID which is located on tp_containers sql table and can be found by using GetContainerIdByFirstNameResult export - this is not the container name).
--- @param header - requires a string (If the header is not placed, it will select as the custom inventory container title the default name that has been created in first place, otherwise it will set as title the selected / input text).
--- @param cb - requires a boolean value (Set to true to disable transferring contents from main inventory to container storage).
exports.tp_containers:OpenInventoryContainerById(containerId, header, cb)
```

2. Check if a player has the containers active (open)

```lua
--- @param hasActiveContainer - returns a boolean value (true / false)
local hasActiveContainer = exports.tp_containers:HasActiveContainers()
```
