Skip to main content

Mechanic Shop

Sell items to players with a polished shop UI

This section

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

ModeBehavior
hybridUse custom image first, fall back to inventory image
inventoryAlways use inventory provider image
customOnly use custom image paths

The script auto-detects your inventory provider and uses the correct image path template:

ProviderTemplate
oxhttps://cfx-nui-ox_inventory/web/images/%s.png
qbhttps://cfx-nui-qb-inventory/html/images/%s.png
qshttps://cfx-nui-qs-inventory/html/images/%s.png
codemhttps://cfx-nui-codem-inventory/html/images/%s.png
esxhttps://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 = '',
},
},
}