gta6/prompts
mechanic
Vaultadvancedmechanic

Flatbed Tilt-Bed Tow

ESX flatbed tow — winch-and-tilt loading physics that haul one vehicle onto a tilting bed, with the loaded-vehicle 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
~110 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

An ESX flatbed tow that loads a single vehicle with a winch-and-tilt sequence: aim at a target vehicle behind the bed, the winch drags it up over frames as the bed tilts, then it locks attached for transport. Tow is a high-velocity Tebex category, and the realistic loading physics — not an instant teleport-attach — is the differentiator buyers pay for.

Prompt Template

You are writing a FiveM resource for esextended (stable, exports getSharedObject).

🔒 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/26-flatbed-tilt-bed-tow.lua. It implements a frame-stepped winch pull toward the bed offset (no teleport-attach), a loaded operator anim…

🔒 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

  • Teleport-attach — snapping the vehicle to the bed in one frame kills the tilt illusion; lerp it over frames toward the bed offset.
  • Client-only load link — storing the link locally leaves the flatbed empty for others; the server must own and broadcast the state.
  • One-sided net event — load/unload on a single side never round-trips; both sides need RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Replace the instant AttachEntityToEntity with a CreateThread that lerps the target vehicle's position toward GetOffsetFromEntityInWorldCoords(flatbed, 0.0, -2.5, 0.5) across ~60 frames before the final attach. Move the load link to a server loaded[flatbedNetId] table and broadcast it with TriggerClientEvent('flatbed:setState', -1, ...) so every client renders the same state, and confirm both sides register the events."

Framework Integration

  • ESX: native — ESX.ShowNotification for operator feedback; the tow itself is entity-physics so ESX only frames the job/notify layer.
  • QBCore: swap notifies to QBCore.Functions.Notify; gate /flatload behind PlayerData.job.name == 'tow' via GetCoreObject().
  • QBox: identical via exports.qbx_core:GetPlayer; job gate and notify map one-to-one with QBCore.

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 — corpus: Tow is a high-velocity Tebex category (scraper); edge = real tilt-bed loading physics, not a teleport-attach.

Sales Angle

Sell on physics realism against the sea of teleport-attach tow scripts. The winch-and-tilt sequence justifies $249-329 standalone, or headline a tow-job bundle with the dispatch script (#29).

Difficulty & Ship Time

advanced · ships in 1 day.