# Integrations and Exports

This arena family uses the same simple integration pattern:

* Inventory state: `modules/inventory/client.lua`
* Revive logic: `modules/ambulance/client.lua`
* Notify, marker, and text UI helpers: `modules/utils/client.lua`
* Framework bridge files: `modules/bridge/*`
* Exports: `modules/exports/client.lua` and `modules/exports/server.lua`

## Inventory Integration

File: `modules/inventory/client.lua`

This file handles:

* Inventory lock while in match
* Weapon wheel state for compatible inventories

Default support:

* `qb-inventory`
* `ox_inventory`
* `qs-inventory`

## Revive Integration

File: `modules/ambulance/client.lua`

Default support:

* `esx_ambulancejob`
* `hospital:client:Revive`
* `qbx_medical`

If your revive script is different, update `Ambulance.RevivePlayer()`.

## Notify and Text UI

File: `modules/utils/client.lua`

Common changes:

* Replace `lib.notify`
* Replace `lib.showTextUI`
* Replace `lib.hideTextUI`
* Adjust marker draw style if needed

## Framework Bridges

Files:

* `modules/bridge/client.lua`
* `modules/bridge/server.lua`
* `modules/bridge/esx/*`
* `modules/bridge/qb/*`
* `modules/bridge/qbx/*`

Use these files if your framework events or player object functions are customized.

## Exports

Client and server both expose this check:

```lua
exports['0r-paintball-v2']:inGame()
```

Use it if another script needs to know whether a player is currently inside Paintball.

## UI Customization

If you want to edit the arena UI, the source is under:

```lua
ui/dev
```

Build it after editing:

```bash
npm install
npm run build
```


---

# Agent Instructions: 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://docs.0resmon.org/0resmon/0r-resources/0r-paintball-v2/integrations-and-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.
