gta6/prompts
mechanic
Vaultadvancedmechanic

Off-Road Winch Recovery

QBCore winch recovery — rope-and-winch physics to flip and unstick a stranded vehicle in rough terrain, with the recovered state owned server-side.

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

Description

A QBCore off-road winch that recovers a stranded vehicle: attach a winch rope to a flipped or stuck car, and the rope tension rotates it upright and drags it free over time rather than snapping it. Off-road roleplay is rising and a real recovery winch is scarce next to flatbed towing, giving this a clear premium lane.

Prompt Template

You are writing a FiveM resource for QBCore (qb-core, exports['qb-core']:GetCoreObject()).

🔒 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/mechanic/28-off-road-winch-recovery.lua. It implements a frame-stepped upright recovery (no single-frame snap), an operator anim with dict…

🔒 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

  • Single-frame snap — flipping the vehicle upright instantly removes all physicality; rotate and lift it across frames.
  • Client-only flip — running the recovery locally leaves others seeing it on its roof; the server must own and broadcast the state.
  • One-sided net event — winch/recover on a single side never round-trips; both sides need RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Replace the instant upright with a CreateThread that lerps SetEntityRotation from the current roll back to level and nudges the vehicle toward the recovery truck across ~50 frames. Move the recovered flag to a server recovered[targetNetId] table and broadcast with TriggerClientEvent('winch:setUpright', -1, targetNetId), and confirm both sides register the events."

Framework Integration

  • QBCore: native — QBCore.Functions.Notify for operator feedback; gate /winch behind PlayerData.job.name == 'mechanic' or 'tow'.
  • QBox: identical via exports.qbx_core:GetPlayer; the job gate and notify map one-to-one.
  • ESX: swap to ESX.ShowNotification and ESX.GetPlayerFromId; gate on xPlayer.job.name.

Profit Potential

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

Trend Signal

rising — inferred: Off-road RP is rising and recovery winching is scarce vs flatbed towing [inferred].

Sales Angle

Target off-road and overland RP servers that the flatbed scripts don't serve. The recovery physics is the hook — price $249-329 standalone, or pair with the flatbed (#26) as a complete recovery suite.

Difficulty & Ship Time

advanced · ships in 1 day.