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).
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access β pay once
- All 510 prompts β the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates β new niches as the market moves
$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β¦
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access β pay once
- All 510 prompts β the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates β new niches as the market moves
$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 thestalledflag. - No dead state β at destruction the car should be undriveable, not just stalling forever; add
SetVehicleUndriveableatDEAD_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.