> For the complete documentation index, see [llms.txt](https://tk-scripts.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://tk-scripts.gitbook.io/docs/tk_jail/exports/client.md).

# Client

## unjail

```lua
exports.tk_jail:unjail(targetId, teleport)
```

Unjails player with given ID. Player triggering this export needs to be a police.

* targetId: `string`
* teleport?: `boolean`

## jail

```lua
exports.tk_jail:jail(targetId, time, jailType, cellIndex, teleport, notes)
```

Jails player with given ID. Player triggering this export needs to be a police.

* targetId: `string`
* time: `int`
* jailType?: `'jail'` `'lockup'`
* cellIndex?: `int`
* teleport?: `boolean`
* notes?: `string`

## seizeItems

```lua
exports.tk_jail:seizeItems(targetId)
```

Seizes item from target. Player triggering this export needs to be a police.

* targetId: `int`

## getSentence

```lua
exports.tk_jail:getSentence(targetId)
```

Gets the sentence of target in minutes.

* targetId: `int`
* Return:
  * sentence: `int`
