> For the complete documentation index, see [llms.txt](https://mic-scripts.gitbook.io/mic/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mic-scripts.gitbook.io/mic/documentation/pawn-shop-app.md).

# Pawn Shop App

{% hint style="info" %}
💬 **Need help?** Support, updates and changelogs are on the [**Mic Scripts Discord**](https://discord.gg/86FPzAV73B). Open a ticket with your Tebex transaction ID and the console error.
{% endhint %}

<a href="https://discord.gg/86FPzAV73B" class="button primary">💬 Join the Discord</a> <a href="https://mic.tebex.io/" class="button secondary">🛒 Get it on Tebex</a>

{% embed url="<https://www.youtube.com/watch?v=vzOZamVAi5s>" %}

## What is mic\_pawnshop?

**mic\_pawnshop** is an app for **lb-phone** where players sell to each other. They pick an item from their own inventory, set a price, and it goes up on a board every player can browse. Whoever buys it pays, gets the item, and the seller's takings wait in the app until they cash them out.

You choose how grounded it is. Left open, the whole trade happens on the phone. Switch on `Config.RequireLocation` and every listing and every purchase has to be closed at the counter: the phone routes the player to the pawn shop, and a clerk hands the goods over.

<figure><img src="https://2570746828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7Moy9Zesg1jsvvHNJmRG%2Fuploads%2F7E6gqoS8Mw2cmTQVzZwP%2Fpawnshop.png?alt=media&amp;token=49c2d7aa-ff3f-4ad2-b49e-58d1255022e8" alt=""><figcaption></figcaption></figure>

### Key features

* **Players set the prices**\
  List any item from your inventory with a quantity and a price, either **per unit** — buyers take as many as they want — or **for the lot**, all or nothing.
* **Takings you cash out**\
  Every sale adds to the seller's pending balance, shown at the top of the app. One tap moves it to their bank, or to cash if you pay in items.
* **Offers that run out**\
  Listings expire after a number of days you choose. The seller can change the price at any time, which starts the clock again, or take the listing down and get the items back.
* **Favourites**\
  Players like the offers they are watching and find them again in their own list, with a like count on every offer.
* **The counter, if you want it**\
  With `Config.RequireLocation` on, the phone sets a route to the pawn shop, a marker waits at the door and a clerk steps up for the hand-off.
* **Metadata survives**\
  On ox\_inventory, a listed item keeps its metadata — serials, durability, whatever it carried — and the buyer gets it as it was. QBCore item info is kept too.
* **A blacklist**\
  Items that can never be listed, and are pulled from the board if they already were.
* **Your inventory's pictures**\
  Offers show the item's image straight from your inventory's image folder.

### What you need

|               |                                                                                   |
| ------------- | --------------------------------------------------------------------------------- |
| **Phone**     | **lb-phone**, started before this resource                                        |
| **Framework** | ESX (`es_extended`), QBCore (`qb-core`) or QBox (`qbx_core`), set in `config.lua` |
| **Database**  | **oxmysql**, and `pawnshop.sql` imported once                                     |
| **Inventory** | Any; ox\_inventory for metadata and paying in items                               |

### Where to go next

| Page                                                                      | What is in it                                                  |
| ------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [🪛 Installation](/mic/documentation/pawn-shop-app/installation.md)       | Folder, SQL, start order, framework, and the first sale        |
| [🎨 Customization](/mic/documentation/pawn-shop-app/customization.md)     | Payments, expiry, the counter, the blacklist, the messages     |
| [🩺 Troubleshooting](/mic/documentation/pawn-shop-app/troubleshooting.md) | The app is missing, images are blank, the money did not arrive |
