> 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/callbacks.md).

# Callbacks

zloma\_stance uses `ox_lib` server callbacks for permission checks, data loading, and active fitment recovery.

***

## Registered Callbacks

| Callback                     | Description                                                       |
| ---------------------------- | ----------------------------------------------------------------- |
| `zloma_stance:canUseZone`    | Checks whether the calling player can use a specific fitment zone |
| `zloma_stance:getWheels`     | Loads saved wheel data for a vehicle plate                        |
| `zloma_stance:getActivePool` | Returns the current server cache of active fitment entries        |

***

## `zloma_stance:canUseZone`

Used by the client before opening the menu.

```lua
local allowed, reason = lib.callback.await('zloma_stance:canUseZone', false, zoneId)
```

| Param       | Type                 | Description                                  |
| ----------- | -------------------- | -------------------------------------------- |
| `zoneId`    | string               | Zone key from `Config.FitmentZones`          |
| **Returns** | boolean, string\|nil | Allowed status and an optional denial reason |

***

## `zloma_stance:getWheels`

Loads saved wheel data for a vehicle plate.

```lua
local data = lib.callback.await('zloma_stance:getWheels', false, plate)
```

This callback does a plate lookup and returns the saved `stance` and `camber` structure if one exists.

***

## `zloma_stance:getActivePool`

Used when a player joins so already-active vehicles can receive their stance visually.

```lua
local activePool = lib.callback.await('zloma_stance:getActivePool', false)
```

Return shape:

```lua
{
    [plate] = {
        data = { ... },
        absData = { ... }
    }
}
```

`absData` contains the normalized absolute values used for direct application and sync.

***

## Internal NUI Callbacks

These are internal UI callbacks, not public integration endpoints, but they are useful for understanding the flow:

* `preview`
* `apply`
* `cancel`
* `rotate`
* `zoom`


---

# 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/callbacks.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.
