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

# Admin Listings

Open the admin panel with `/auctionadmin`. It works from anywhere, and only admins can use it, through `Bridge.IsAdmin`. The NPCs never show admin options, even to admins.

### Panel tabs

* **New listing:** create a lot.
* **Live lots:** see running auctions. Hold to end a lot now, which refunds the top bidder and returns player items or vehicles.
* **Bids:** every bid, with names.
* **Winners:** who won, and the delivery or collection status.
* **Recent results:** finished auctions.

### Creating a listing

Set a title, description, optional image link, and the type-specific fields: a spawn code and plate for vehicles, an item and amount for items, or the bundle for a mystery box. Then choose:

* **Payment:** cash, bank or VIP
* **Bid only** or **Bid and buy now**
* Starting bid and minimum raise
* Duration in days, hours and minutes

### Winning messages

The admin types a winning message for each lot, for example "Contact staff to claim". It shows in the winner's Claims tab and their email. Defaults for each type are in `Config.WinNotes`.

### What the winner gets

| Type        | On win                                                                                                                                  |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| Vehicle     | Put straight into the winner's garage, plus an email                                                                                    |
| House       | An email with the winning message                                                                                                       |
| Item        | An email, and the item to collect from the Claims tab at the auctioneer. If the admin turned off "give item", only the message is sent. |
| Mystery box | Everything in the box, all at once, plus an email listing what was inside                                                               |

### Mystery boxes

Choose **Mystery Box** when creating a listing, then build the bundle from VIP tokens, cash, bank money, items and vehicles. A box can hold up to 12 entries, mixed as you like.

Players only see the title, description and picture. The lot page says the contents are a secret. When the auction ends, the winner gets everything. Money and tokens are paid straight away, vehicles go into their garage with a random plate (or the plate you typed), and items wait in the Claims tab. Their email lists what was inside, which is the reveal.

Admins see only how many things were in a box, in the Winners tab.
