> 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_stance-free-escrow/api-reference/server-exports.md).

# Server Exports

## GetWheelDataByPlate

Loads saved wheel data for a vehicle by plate.

```lua
local data = exports['zloma_stance']:GetWheelDataByPlate(plate)
```

| Param       | Type       | Description                                    |
| ----------- | ---------- | ---------------------------------------------- |
| `plate`     | string     | Vehicle plate                                  |
| **Returns** | table\|nil | Saved wheel data or `nil` if nothing is stored |

Returned data is the database format:

```lua
{
    stance = {
        fl = 0.0, fr = 0.0, rl = 0.0, rr = 0.0,
        front = 0.0, rear = 0.0
    },
    camber = {
        fl = 0.0, fr = 0.0, rl = 0.0, rr = 0.0,
        front = 0.0, rear = 0.0
    }
}
```

***

## ApplyOnSpawn

Loads saved fitment for a vehicle plate and sends it to the specified client so the vehicle gets its stance back after spawn.

```lua
exports['zloma_stance']:ApplyOnSpawn(source, netId, plate)
```

| Param    | Type   | Description                                          |
| -------- | ------ | ---------------------------------------------------- |
| `source` | number | Player server ID that should receive the apply event |
| `netId`  | number | Network ID of the spawned vehicle                    |
| `plate`  | string | Plate used to load saved fitment                     |

Use this from garage, impound, or dealership resources immediately after the vehicle entity exists and has a valid network ID.

***

## Shared Locale Helpers

These exports come from the shared utility layer and are available for integration use:

### Lang

```lua
local text = exports['zloma_stance']:Lang('target_stance_menu')
```

Returns the localized string for the active locale.

### SetLocale

```lua
exports['zloma_stance']:SetLocale('en')
```

Forces the shared locale helper to another loaded locale.


---

# 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_stance-free-escrow/api-reference/server-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.
