> 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/cas-owned-shops/buying.md).

# Buying

How customers shop in CAS Owned Shops: search, category filter, the basket, checkout and the stock, money and carry checks.

Press **G** at any shop's counter to open the store. Player-owned shops and NPC general stores use the same screen.

## Finding items

* **Search** filters the list by item name.
* **Category** shows one category at a time, or **All Categories**.

Each item shows its picture, label, price and how many are in stock.

## The basket

**Add to Basket** puts one of an item in your basket, and the arrows change the amount. You can't add more than the shop has. **Your Basket** shows each line and the total.

## Checkout

**Purchase Items** pays for the whole basket in cash. The server checks everything before it takes any money:

* You have enough cash for the total.
* The shop still has enough stock for every line.
* You can carry the items and the weapons.

If any check fails, you get a message explaining why and nothing is charged. When everything is fine, the items and weapons go into your inventory and the total is taken from your cash.

In a player-owned shop, the money goes into the shop's cash box, and a listing disappears once its stock reaches 0.

{% hint style="info" %}
Only one checkout runs at a time in each player-owned shop, so two buyers can't pay for the same last item. If you see **Please wait...**, another player was paying at the same moment. Try again.
{% endhint %}
