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

# Commands

## Player commands

| Command       | Description                                                                                                                              |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `/vipshop`    | Open or close the shop. Command only; RedM does not support key mappings. Other resources can open it through `exports.vip_shop:Open()`. |
| `/vipbalance` | Show your coin balance.                                                                                                                  |

## Admin and console commands

All of these require the `vipshop.admin` ace. The console is always allowed.

| Command                                                            | Description                                                                                                                                                                                                           |
| ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `vipshop_givecoins <serverId\|identifier> <amount>`                | Credit coins. Online targets are notified and their open shop updates live. This is also the Tebex delivery command for coin packages.                                                                                |
| `vipshop_setmembership <serverId\|identifier> <tier\|none> [days]` | Grant, renew or remove a membership. Omit `days` for lifetime. Also the Tebex subscription command.                                                                                                                   |
| `vipshop_givetier <serverId> <tier>`                               | Deliver the tier's reward bundle (`Config.Memberships[tier].rewards`): coins, cash, gold, items, weapons, horses. Runs alongside `vipshop_setmembership` on subscription purchase and renewal. Target must be online. |
| `vipshop_createcode <CODE> <coins> <maxUses>`                      | Create a redeem code. `0` means unlimited uses.                                                                                                                                                                       |
| `vipshop_orders`                                                   | List open commissions (products with an `order` delivery).                                                                                                                                                            |
| `vipshop_orderdone <id>`                                           | Mark a commission fulfilled.                                                                                                                                                                                          |

## Ace setup

```cfg
add_ace group.admin vipshop.admin allow
```

## Tebex quick reference

| Package                           | Command(s)                                                                     |
| --------------------------------- | ------------------------------------------------------------------------------ |
| Coin pack                         | `vipshop_givecoins {sid} 2650`                                                 |
| Subscription purchase and renewal | `vipshop_setmembership {sid} marshal 35` plus `vipshop_givetier {sid} marshal` |
| Subscription expiry (optional)    | `vipshop_setmembership {sid} none`                                             |
| Founder (one time)                | `vipshop_setmembership {sid} founder` plus `vipshop_givetier {sid} founder`    |

Enable "Require player to be online" on every package that uses `{sid}`.
