> 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/backpacks/development-api/client.md).

# Client

### Exports

1. Get state if the script has loaded on the client - player. This is required for using the rest of exports.

```lua
--- @param loaded - returns a boolean value (Returns a boolean true / false if the player data has loaded related to this script - such as loading all backpack data on login).
local loaded = exports.tp_backpacks:Loaded()
```

2. Returns a boolean (true / false) if the player has a backpack attached (equipped) or not.

```lua
--- @param hasBackpackAttached - returns a boolean value (Returns a boolean true / false if the player has a backpack attached - equipped or not).
local hasBackpackAttached = exports.tp_containers:HasBackpackAttached()
```

3. The specified export is used to unequip an attached (equipped) backpack (force-unequip).

```lua
exports.tp_containers:UnequipBackpack()
```
