# Images

## 🖼️ Images

ELENASHOP supports product images from your inventory system or custom images.

***

### Enable Images

Config.UseImages = true

***

### Option 1: Use Inventory Images (Recommended)

No file copying needed. Point to your existing inventory images.

For ox\_inventory:

Config.ImagePath = 'nui://ox\_inventory/web/images/'

For qb-inventory:

Config.ImagePath = 'nui://qb-inventory/html/images/'

This is the easiest method. Images are loaded directly from your inventory resource.

***

### Option 2: Custom Images

Step 1: Create images folder

elenashop/ └── html/ └── images/ ├── burger.png ├── water.png ├── phone.png └── ...

Step 2: Set config

Config.ImagePath = 'nui://elenashop/html/images/'

#### Image Requirements

| Property   | Requirement                            |
| ---------- | -------------------------------------- |
| Format     | PNG (recommended)                      |
| Filename   | Must match item name (e.g. burger.png) |
| Size       | 128x128 recommended                    |
| Background | Transparent PNG works best             |

***

### Disable Images

Config.UseImages = false

When disabled, Font Awesome icons are used instead.

***

### Fallback Behavior

If an image fails to load the script automatically falls back to the Font Awesome icon. No errors shown.

Image found -> Show image Image missing -> Show Font Awesome icon Icons missing -> Show default box icon

You can mix images and icons. Items with images will show images, items without will show icons.


---

# 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/economy/shop/images.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.
