gta6/prompts
vehicles
Vaultintermediatevehicles

Cruise Control & Speed Limiter

Framework-agnostic cruise control that holds a set speed plus an adjustable max-speed limiter for highway and convoy driving.

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

Description

Cruise control that locks the vehicle to its current speed (re-arming when you tap throttle or brake) plus an adjustable max-speed limiter for highways and convoys. The selling point is the smoothness — naive implementations jitter, so a clean speed-hold is what servers actually pay for.

Prompt Template

You are writing a FiveM Lua script. Build cruise control (hold current speed) plus…

🔒 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/19-cruise-control-limiter.lua holds a captured speed that re-arms on throttle/brake input and clamps to a km/h-to-m/s-converted limiter, all…

🔒 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

  • Jitter — forcing SetVehicleForwardSpeed every frame fights physics; yield to live throttle/brake input and re-arm.
  • Unit mismatch — comparing km/h against m/s clamps at the wrong speed; standardize on m/s.
  • Passenger cruise — guard the hold loop with the driver-seat check.

Corrective re-prompt: "Cruise control jitters and the limiter caps at the wrong speed. Re-arm the target speed whenever control 71 or 72 is pressed (don't force speed then), and convert the limiter from km/h to m/s with /3.6 before comparing to GetEntitySpeed, which is m/s."

Framework Integration

  • ESX: show the cruise/limiter state with ESX.ShowNotification after exports['es_extended']:getSharedObject().
  • QBCore: QBCore.Functions.Notify from exports['qb-core']:GetCoreObject().
  • QBox: exports.qbx_core:Notify; works unchanged on qbx since it is native-driven.

Profit Potential

$150–$2000/mo on Tebex (expected ~$550). [INFERRED] $50-389 script band (§2) × estimated units/mo for a stable niche, benchmarked against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo).

Trend Signal

stable — inferred: Cruise + speed-limiter is a steady QoL ask (smooth speed-hold logic is the work); modest but durable standalone demand.

Sales Angle

Target trucking, convoy, and long-haul RP servers where a steady speed is a real need, and lead with the smooth-hold logic as the differentiator. Recommended Tebex price: $80.

Difficulty & Ship Time

intermediate · ships in 1 day.