gta6/prompts
vehicles
Coreadvancedvehicles

Damage Model: Engine Health to Stall

A damage model where a low engine-health car randomly stalls, gets harder to keep running, and dies when destroyed.

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

Description

A progressive engine-damage system: once a vehicle's engine health drops below a threshold it begins randomly stalling, and the chance of cutting out climbs as damage worsens until, at near-destruction, the car becomes undriveable. It turns collisions and gunfire into meaningful mechanical consequences instead of cosmetic dents.

Prompt Template

You are writing a client-side FiveM Lua script (no framework needed).

πŸ”’ 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/07-damage-model-stall.lua implements the correct 1000..-4000 health scale, a driver-only check, severity-scaled stall probability, a…

πŸ”’ 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

  • Wrong health scale β€” Claude assumes 0-100 and the thresholds never trigger; state the 1000..-4000 range explicitly.
  • Passenger stalls β€” without the GetPedInVehicleSeat(veh,-1) driver check, passengers also kill the engine. Require it.
  • Restart fights the loop β€” calling SetVehicleEngineOn(false) every frame cancels the player's restart; gate engine writes behind the stalled flag.
  • No dead state β€” at destruction the car should be undriveable, not just stalling forever; add SetVehicleUndriveable at DEAD_THRESHOLD.

Integration Notes

Single client.lua; fxmanifest.lua with fx_version 'cerulean', game 'gta5', client_script 'client.lua'. No framework or DB. Tune STALL_THRESHOLD/DEAD_THRESHOLD to taste. Test: ensure <resource>, ram a wall to lower engine health, and confirm the car begins stalling and eventually dies.

Profit Potential

$240–$3100/mo on Tebex (expected ~$840). [INFERRED] A standalone realism layer with solid hardcore-RP demand; priced mid-band, gated by the correct engine-health scale most scripts get wrong.

Trend Signal

β†— rising β€” vehicle modding/tuning niche-selection 3.75; corpus ox_fuel active.

Sales Angle

Sell as the consequence layer that pairs with any mechanic or repair sink β€” the correct 1000..-4000 health scale and severity-scaled stalls. Recommend $119 on Tebex.

Difficulty & Ship Time

advanced Β· ships in 1 day.