QBCoreQBoxESX

Mechanic

A full mechanic shop — real-performance tuning, servicing with parts that actually wear out, breakdowns, a customer customs kiosk with a live 3D preview, nitrous, stance, a dyno, work orders, invoices, crafting and shop management.

💡

Tuning changes real handling — power, grip and top speed — rather than granting cheat performance. Everything persists per plate and re-applies when the car is entered.

Requirements

ResourceRequiredNotes
ox_libYesCallbacks, menus, vehicle properties
oxmysqlYesTen tables — shops, vehicles, servicing, orders, invoices
A frameworkYesQBCore, Qbox or ESX
An inventoryYesFor parts, kits and crafting materials

Framework and inventory are auto-detected. Only ox_lib and oxmysql are hard dependencies.

Install

  1. Drop jj-mechanic into your resources folder.
  2. Import install/mechanic.sql.
  3. Add the items from install/items.lua (ox_inventory) or install/qb-items.lua (qb-inventory), and copy install/images/ into your inventory's image folder.
  4. Add to server.cfg, after your framework, inventory, ox_lib and oxmysql:
ensure jj-mechanic
  1. Restart, then run /mechanicadmin in-game to place your first shop.

Database

Ten tables are created by the SQL import:

TableHolds
jj_mechanic_shopsShop definitions, placed in-game
jj_mechanic_employeesStaff, grades and duty state
jj_mechanic_vehicledataPer-plate tuning and cosmetics
jj_mechanic_mileageOdometer per plate — drives part wear
jj_mechanic_servicingCurrent condition of the 10 wear parts
jj_mechanic_servicing_historyPast services
jj_mechanic_ordersWork orders from the customs kiosk
jj_mechanic_invoicesItemised bills
jj_mechanic_invoice_templatesSaved invoice presets
jj_mechanic_prefsPer-player interface preferences

Placing a shop

Shops are created in-game, not in a config file. Run /mechanicadmin to place the shop zone, the customs kiosk, crafting benches and lockers, and to set mechanic commission — all without a restart.

Each shop binds to its own job, so several independent garages can run side by side.

First run

  1. /mechanicadmin — place a shop and a customs kiosk.
  2. Hire yourself into the shop's job and go on duty.
  3. Give yourself a mechanic_tablet item — that is what opens the tuning tablet. There is no command for it.
  4. Drive a car into the shop and use the tablet.
  5. Run the dyno, service a worn part, or fit a turbo and feel the difference.
  6. Sit in a car at the kiosk and press E as a customer to build a cart.
💡

With no mechanic on duty the kiosk offers customers a paid self-service repair, so the shop is never a dead end on a quiet server. Fee and duration are configurable.

Next: Configuration.