gta6/prompts
heists
Vaultadvancedheists

Moving Train Robbery — Board & Crack Cars in Transit

ESX/QB heist that boards a moving freight train and cracks each car's safe in transit with a server-authoritative per-car loot gate.

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

Description

A moving train robbery: the crew boards a freight train already in transit, attaches to a car, and cracks each car's safe while the train keeps rolling, with loot paid per car. Servers buy it because moving-entity heists are rare — most packs only do static vaults.

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/heists/12-train-robbery-moving-cars.lua. It attaches the ped to the moving train, runs an in-transit crack with NUI progress, and pays a per-car…

🔒 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

  • Client-trusted cars — Claude pays loot client-side per car; keep the looted-car set server-side and reject repeats.
  • Anim before loadTaskPlayAnim no-ops without a loaded dict; always RequestAnimDict + a HasAnimDictLoaded wait loop.
  • Falls off the train — using world coords instead of AttachEntityToEntity drops the ped as the train moves; attach for in-transit work and detach after.

Corrective re-prompt: "Keep a per-source set of looted car indices on the server, reject any crackCar that is already in the set or outside 1..CAR_COUNT, pay once per valid car, and on the client AttachEntityToEntity the ped to the train car for the crack then DetachEntity when done."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); pay via xPlayer.addMoney(reward).
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); resolve with QBCore.Functions.GetPlayer(src) and pay Player.Functions.AddMoney('cash', reward).
  • QBox: use exports.qbx_core:GetPlayer(src) then the same AddMoney('cash', reward).

Profit Potential

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

Trend Signal

rising — inferred: Few moving-train heists exist — moving-entity sync is hard, so low competition plus high novelty pull.

Sales Angle

Position as the rare moving-train heist most packs never attempt — novelty plus solved moving-entity attach/sync is the whole pitch. Recommended Tebex price $189.

Difficulty & Ship Time

advanced · ships in 1 day.