gta6/prompts
vehicles
Coreintermediatevehicles

Custom Liveries: Apply and Save

Apply a livery to the current QBCore vehicle, handling both modern modkit and legacy liveries, and persist the chosen index.

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
~56 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-24

Description

A livery shop for QBCore vehicles that correctly handles GTA's two livery systems — the legacy SetVehicleLivery and the modern modkit livery (mod index 48) — applies a chosen index to the car the player is in, validates the range, and saves the selection so it reloads with the vehicle. Essential for emergency-service fleets and branded cars.

Prompt Template

You are writing a FiveM resource for QBCore. ONE Lua file, client + server sections.

🔒 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/vehicles/08-custom-liveries.lua implements dual-path livery detection, a range-checked /livery command, the modkit-first write order, and a server UPDATE…

🔒 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

  • Legacy-only — Claude uses just SetVehicleLivery, so modern modkit cars show nothing. Require the GetVehicleModCount(veh,48) branch.
  • No modkit init — skipping SetVehicleModKit(veh, 0) makes SetVehicleMod silently fail; mandate it first.
  • Out-of-range index — applying an index beyond the count fails or wraps; clamp against the real max.
  • No persistence — applying without saving means the livery is lost on respawn; require the server UPDATE + a restore event.

Integration Notes

client.lua + server.lua; fxmanifest.lua includes @oxmysql/lib/MySQL.lua and dependencies { 'qb-core', 'oxmysql' }. Add a livery column to player_vehicles and call livery:restore from your persistence/garage spawn. Test: sit in a liveried vehicle (e.g. police), run /livery 2, confirm it changes and the row updates.

Profit Potential

$180–$2500/mo on Tebex (expected ~$680). [INFERRED] A focused fleet and branding utility with a narrower buyer pool; priced low-mid in the band.

Trend Signal

rising — vehicle modding/tuning niche-selection 3.75; corpus ox_fuel active.

Sales Angle

Target emergency-service and branded-fleet servers — it handles both modkit and legacy liveries with persistence. Recommend $99 on Tebex.

Difficulty & Ship Time

intermediate · ships in 4-6h.