Mechanic Shop
A category-filtered shop UI for selling mechanic items to players.
Features
- Category-filtered item browsing
- Auto-spawned shop PED (configurable model, default:
s_m_m_autoshop_02) - Multiple shop locations per mechanic
- Smart image system with automatic inventory provider detection
- Per-item quantity caps and metadata support
- Max 100 items per purchase (configurable)
- Interaction: E key or ox_target/qb-target
Image Modes
| Mode | Behavior |
|---|---|
hybrid | Use custom image first, fall back to inventory image |
inventory | Always use inventory provider image |
custom | Only use custom image paths |
The script auto-detects your inventory provider and uses the correct image path template:
| Provider | Template |
|---|---|
| ox | https://cfx-nui-ox_inventory/web/images/%s.png |
| qb | https://cfx-nui-qb-inventory/html/images/%s.png |
| qs | https://cfx-nui-qs-inventory/html/images/%s.png |
| codem | https://cfx-nui-codem-inventory/html/images/%s.png |
| esx | https://cfx-nui-esx_inventoryhud/html/img/items/%s.png |
Catalog Setup
lua
Config.Shop.catalogs = {
['mechanic_shop'] = {
{
id = 'repairkit_1',
item = 'repairkit',
label = 'Repair Kit',
description = 'Professional vehicle repair kit.',
category = 'tools',
price = 2400,
image = '',
},
},
}
