gta6/prompts
racing
Vaultintermediateracing

Vehicle Class & Balance-of-Performance

QBCore/QBox entry filter by vehicle class plus a server-decided per-car balance-of-performance handicap (engine power/grip) so mismatched cars race fairly.

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

Description

A class gate plus balance-of-performance for QBCore or QBox: entry is restricted to one vehicle class, and the server applies a per-car power/grip handicap so a faster car is reined in and a slower one is helped, making mismatched lobbies competitive. Servers sell this because BoP is the fairness layer that turns a chaotic mixed grid into a real series.

Prompt Template

You are writing a FiveM resource for a vehicle class gate + balance-of-performance.

πŸ”’ 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 lives at content/expected-outputs/racing/15-vehicle-class-bop.lua. It implements a server-side class gate, a per-model BoP lookup, an in-vehicle-guarded application of engine…

πŸ”’ 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-trusted eligibility β€” Claude lets the client decide its own class/BoP; keep the class check and BoP table server-side and only send the resolved factors.
  • Apply before entry β€” multiplier set while GetVehiclePedIsIn is 0 no-ops; apply only after confirming the player is in the vehicle.
  • One-sided net event β€” defining bop:apply on only one side leaves the car untouched; both sides use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Keep ALLOWED_CLASS and the BOP[model] table on the server; bop:checkEntry must reject off-class cars and only send powerMult/gripMult for eligible models, and the client applies them only when GetVehiclePedIsIn(PlayerPedId()) is non-zero."

Framework Integration

  • ESX: not in scope for this entry (QB/QBox series tooling); port by swapping the core export if needed.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); restrict the admin bop:set path to staff via QBCore.Functions.HasPermission.
  • QBox: use exports.qbx_core and gate the tune path with qbx_core permissions; the class check and BoP table stay server-side.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), set for a rising vehicle/tuning-fairness niche.

Trend Signal

β†— rising β€” strategy: niche-selection.md vehicles/tuning row β†’ rising (3.75); class + BoP is vehicle-tuning-fairness.

Sales Angle

Position as the fairness layer that makes mixed-car lobbies competitive β€” a class gate plus a per-car handicap. Recommended Tebex price $279.

Difficulty & Ship Time

intermediate Β· ships in 1 day.