> For the complete documentation index, see [llms.txt](https://docs.kuzquality.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kuzquality.com/resources/premium-resources/shell-creator/api/client.md). Agents can also search and read this documentation through its [MCP server](https://docs.kuzquality.com/~gitbook/mcp).

# Client

### Client events

#### kq\_shellbuilder:client:teleporting

Triggered right before the Shell Creator teleports the player (shell teleporters, teleport from the shell list).

```lua
AddEventHandler('kq_shellbuilder:client:teleporting', function(coords)
end)
```

### Client exports

#### IsInsideIPL

Returns whether the player is inside any shell.

```lua
exports.kq_shellbuilder:IsInsideIPL()
-- Returns: (boolean)
```

#### OpenShellEditor

Opens the editor directly, skipping the shell list. Omit the id to create a new shell. The player still needs server-side permissions to save.

```lua
exports.kq_shellbuilder:OpenShellEditor()   -- new shell
exports.kq_shellbuilder:OpenShellEditor(20) -- edit shell 20
-- Arguments: int Shell ID (optional), int Max levels (optional), int Max depth (optional), int Max width (optional)
-- Returns: (void)
```

#### IsShellCreatorActive

Returns whether the player is currently using the Shell Creator.

```lua
exports.kq_shellbuilder:IsShellCreatorActive()
-- Returns: (boolean)
```

#### TogglePropertyEditInteraction

Toggles the property editing interaction. Useful for external housings to disable it when using an embedded option for it

```lua
exports.kq_shellbuilder:TogglePropertyEditInteraction(newValue)
-- Returns: (nil)
```
