> For the complete documentation index, see [llms.txt](https://zloma-scripts.gitbook.io/zloma-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zloma-scripts.gitbook.io/zloma-scripts/zloma_vehicleshop-paid/api-reference/client-exports.md).

# Client Exports

zloma\_vehicleshop exposes a few client-side exports for integration and admin tooling.

***

## Showroom Data

### GetShops

Returns the full local shop cache currently loaded on the client.

```lua
local shops = exports['zloma_vehicleshop']:GetShops()
```

| Returns | Type  | Description                           |
| ------- | ----- | ------------------------------------- |
| `shops` | table | Client-side table of loaded shop data |

***

### GetShopData

Returns the `data` payload for a single shop if it is loaded.

```lua
local shopData = exports['zloma_vehicleshop']:GetShopData(shopId)
```

| Param    | Type    | Description            |
| -------- | ------- | ---------------------- |
| `shopId` | number  | Database/shop cache ID |
| Returns  | \`table | nil\`                  |

***

## Admin Tools

### StartLocationPicker

Starts the interactive world location picker used by the admin setup flow.

```lua
local coords, heading = exports['zloma_vehicleshop']:StartLocationPicker(promptText)
```

| Param        | Type                   | Description                      |
| ------------ | ---------------------- | -------------------------------- |
| `promptText` | string                 | Optional UI prompt text          |
| Returns      | `vector/table, number` | Selected coordinates and heading |

***

### StartSpawnEditor

Starts the interactive showroom/spawn placement editor and returns the selected coordinates.

```lua
local coords = exports['zloma_vehicleshop']:StartSpawnEditor(vehicleModel, initialCoords)
```

| Param           | Type    | Description                    |
| --------------- | ------- | ------------------------------ |
| `vehicleModel`  | string  | Model to preview in the editor |
| `initialCoords` | table   | Optional starting position     |
| Returns         | \`table | nil\`                          |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zloma-scripts.gitbook.io/zloma-scripts/zloma_vehicleshop-paid/api-reference/client-exports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
