# Dealer

Buy robbery tools, sell stolen loot, view statistics.

### Setup

```
Config.Dealer = {
    enabled = true,
    model = 's_m_y_dealer_01',
    coords = vector3(36.4, -1102.5, 29.3),
    heading = 160.0,
    interactDistance = 2.5,
}
```

### Blip

```
blip = {
    enabled = true,
    sprite = 478,
    color = 2,
    scale = 0.7,
    label = 'Black Market',
}
```

### Buy Items (Tools)

| Item       | Price  |
| ---------- | ------ |
| Lockpick   | $500   |
| Drill      | $2,000 |
| Thermite   | $5,000 |
| USB Hacker | $3,500 |

### Sell Items (Loot)

| Item              | Price   |
| ----------------- | ------- |
| Stolen ATM Card   | $250    |
| Marked Bills      | $150    |
| Electronic Parts  | $400    |
| Cash Bag          | $600    |
| Security Card     | $800    |
| Rolex Watch       | $2,500  |
| Diamond           | $5,000  |
| Gold Bar          | $8,000  |
| Crypto Wallet USB | $15,000 |

### Statistics Tracked

* Total Robberies
* Success Rate (percentage)
* Successful Robberies
* Failed Robberies
* Total Earnings
* Money Spent
* Items Sold
* Items Bought

Stats saved to MySQL database. Persists across restarts.

### Images

html/images/dealer\_bg.png (1280x720, dark background) html/images/sidebar\_bg.png (400x1040, vertical) html/images/logo.png (120x120, transparent) html/images/items/\*.png (64x64, transparent)

Images optional. Font-awesome icons used as fallback.

### Adding Buy Items

item = 'item\_name' label = 'Display Name' price = 1000 description = 'Item description' icon = 'fas fa-icon' image = 'item\_name.png' category = 'tools'

### Adding Sell Items

item = 'item\_name' label = 'Display Name' price = 500 icon = 'fas fa-icon' image = 'item\_name.png'

### NPC Models

| Model                 | Description             |
| --------------------- | ----------------------- |
| s\_m\_y\_dealer\_01   | Street dealer (default) |
| g\_m\_y\_korean\_01   | Korean gang member      |
| a\_m\_y\_business\_02 | Businessman             |
| s\_m\_y\_ammucity\_01 | Ammu-Nation clerk       |
| g\_m\_y\_mexgoon\_01  | Mexican gang            |

### NPC Protection

NPC auto-respawns if streamed out. Checks every 5 seconds when player within 100m.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://elena-scripts.gitbook.io/elenascripts/gameplay/atm-rob/dealer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
