gta6/prompts
mechanic
Vaultintermediatemechanic

OBD Diagnostic Scanner

A plug-in OBD scanner that snapshots subsystem health, then maps damage to fault codes and the exact component to repair — with the code-mapping owned by the server.

NON-TESTÉ — the reference Lua is syntax-validated, not run in a live FiveM server. Adapt and test on your own dev server before shipping.
Est. Lua
~74 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A plug-in OBD scanner that snapshots a vehicle's engine, body and fuel-tank health, then returns decoded fault codes naming the exact failing component and severity. The damage-to-code mapping lives only on the server, so the scanner is a real diagnostic step rather than a client-readable cheat sheet.

Prompt Template

You are writing a FiveM resource for QBCore/QBox (resolve via…

🔒 Eyes-only — locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.

Expected Output

The reference Lua at content/expected-outputs/mechanic/17-obd-diagnostic-scanner.lua implements an anim-gated client snapshot of three subsystems and a server-side decode table that maps thresholds…

🔒 Eyes-only — locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.

Known Failure Modes & Corrective Prompt

  • Client-side decode — the mapping ships in the client so players read which component to fix without scanning. Keep the decode table server-only.
  • Unloaded scan animTaskPlayAnim runs before the dict loads, so the plug-in gesture never plays.
  • One-sided round-trip — the analyze/report events are registered on a single side and the snapshot never reaches the server.

Corrective re-prompt: Move the decode table into the server analyze handler, register analyze/report with RegisterNetEvent + AddEventHandler on both sides, validate type(snapshot) == "table" server-side, and load the scan dict with the while not HasAnimDictLoaded(dict) do Wait(0) end loop before TaskPlayAnim.

Framework Integration

  • ESX: portable via exports["es_extended"]:getSharedObject(); require an "obd_scanner" item before the scan event fires.
  • QBCore: resolve with exports["qb-core"]:GetCoreObject(); gate the scan on the mechanic job and surface codes in a qb-menu list.
  • QBox: use exports.qbx_core with ox_inventory to require the scanner item and ox_lib:notify for the readout.

Profit Potential

$150–$2000/mo on Tebex (expected ~$510). [INFERRED] Priced inside the $50-389 script band against the signal-scraper corpus (median seller $11.85K/mo, n=100); steady, under-served diagnostic depth lands mid-band.

Trend Signal

stable — inferred: Diagnostic depth is steady and under-served by shallow repair scripts [inferred].

Sales Angle

Sell the depth that one-tap repair scripts lack — a scanner that names the exact failing component turns repairs into a skilled diagnostic job. Recommended Tebex price $69.

Difficulty & Ship Time

intermediate · ships in 4-6h.