> For the complete documentation index, see [llms.txt](https://code-after-sex.gitbook.io/script-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://code-after-sex.gitbook.io/script-documentation/vip-shop/getting-started/requirements.md).

# Requirements

## Server

| Requirement                                        | Notes                                                                                             |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| RedM server                                        | fxserver, `cerulean` fx version                                                                   |
| [oxmysql](https://github.com/overextended/oxmysql) | Hard dependency. All persistence runs through it.                                                 |
| Framework                                          | VORP (`vorp_core`, `vorp_inventory`) or RSG (`rsg-core`, `rsg-inventory`), detected automatically |

## Optional, feature dependent

| Resource              | Enables                                                  |
| --------------------- | -------------------------------------------------------- |
| `vorp_stables` (VORP) | Horse deliveries straight into the `stables` table       |
| `rsg-horses` (RSG)    | Horse deliveries straight into the `player_horses` table |
| Discord webhook       | Purchase, membership and commission logging              |

## Tebex

Real money features (coin packs, memberships) require a Tebex webstore:

* A webstore created as the **Universal** type. See [Store Setup](/script-documentation/vip-shop/tebex-integration/store-setup.md) for why this matters.
* The store's **public API token**, found under **Integrations > API Keys** in the Tebex creator panel. This token is safe to expose to clients.
* A **Game Server secret key** (`sv_tebexSecret`) so Tebex can run delivery commands on your server.

{% hint style="info" %}
The shop also works without Tebex. The coin economy, deliveries, admin granted memberships, redeem codes and the order book are all fully functional standalone. Tebex only powers the real money entry points.
{% endhint %}

## Framework compatibility matrix

| Feature                               | VORP                              | RSG                                       |
| ------------------------------------- | --------------------------------- | ----------------------------------------- |
| Coin balance, purchases, redeem codes | Yes                               | Yes                                       |
| Items (dual name mapping)             | Yes, `vorp_inventory`             | Yes, `rsg-inventory`                      |
| Weapons (real RDR2 hashes)            | Yes, `createWeapon`               | Yes, as weapon items                      |
| Ammo                                  | Yes, bullets API                  | Yes, ammo items                           |
| Cash                                  | Yes                               | Yes                                       |
| Gold                                  | Yes                               | Partial: `bloodmoney`, falls back to cash |
| Horses written to the stable database | Yes, `stables`                    | Yes, `player_horses`                      |
| Extra character slot                  | Yes, automatic (`users.char + 1`) | Becomes a staff order                     |
| Memberships and discounts             | Yes                               | Yes                                       |
| Order book (optional)                 | Yes                               | Yes                                       |
