gta6/prompts
jobs
Vaultadvancedjobs

Cargo Pilot Job — Air Freight Charters

ESX air-freight job that loads cargo with an anim, spawns a freight plane, routes you to a destination airfield, and pays out server-side on landing.

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

An advanced ESX air-freight pilot job: /acceptcharter plays a cargo-load animation, asks the server for a charter, spawns a freight plane, and routes you to one of several destination airfields. The server authorizes the assignment and the payout, so landing at the marked field — verified by a ground-height check — collects a server-tracked reward. It is the aviation counterpart to a trucking run, monetizing the airport surface most servers leave idle.

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/jobs/29-cargo-pilot-air-charter.lua. It implements an anim-loaded cargo pickup, a model-loaded plane spawn, a routed destination blip with 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 & Corrective Prompt

  • Client-trusted payout — paying in the client lets anyone spoof completeCharter. Keep the amount in pending[src] server-side and pay only that.
  • Anim never playsTaskPlayAnim before HasAnimDictLoaded is true silently no-ops. Loop on the dict first.
  • Air-fired completion — without GetEntityHeightAboveGround < 6.0 the payout triggers on a fly-over. Gate completion on a real landing.
  • Plane spawn desyncCreateVehicle before HasModelLoaded gives a null/invisible aircraft; load the model first and release it after.

Corrective re-prompt: "The payout can be spoofed and fires mid-air. Move all reward state into a server-side pending[src] table set in cargopilot:requestCharter and read+cleared in cargopilot:completeCharter, and gate client completion on both #(pos - dest) < 30.0 AND GetEntityHeightAboveGround(ped) < 6.0 so only a landed plane completes."

Framework Integration

  • ESX: uses exports["es_extended"]:getSharedObject(), xPlayer.job.name, and xPlayer.addMoney(payout); seed a cargopilot job in your jobs table.
  • QBCore: swap to exports["qb-core"]:GetCoreObject(), gate on player.PlayerData.job.name, and pay via player.Functions.AddMoney("bank", payout, "air-charter").
  • QBox: identical to QBCore through the qbx_core bridge — keep the same job gate and AddMoney call via the compatibility exports.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] priced inside the $50-389 FiveM script band against a rising aviation-economy niche; corpus median seller $11.85K/mo (signal-scraper tebex_snapshot n=100), scaled down for a single-job resource.

Trend Signal

rising — inferred: Air-freight/charter niche rising with airport RP; aviation cargo loop distinct from ground trucking runs by medium and aircraft handling.

Sales Angle

Position it as the aviation-economy job airport-RP servers are missing — a fresh earnings loop that reuses the airfields they already built, distinct from trucking. Recommended Tebex price $249.

Difficulty & Ship Time

advanced · ships in 1 day.