gta6/prompts
gangs
Vaultintermediategangs

Drive-By Combat Turf Bonus

ESX passenger drive-by handler that awards bonus war points only when the kill happens inside contested turf, validated 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
~76 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A working ESX drive-by turf bonus: when a passenger (not the driver) lands a drive-by kill inside a contested zone during a war, the server awards extra war points to their gang. Out-of-zone or driver kills earn nothing extra. It is the classic mobile-warfare flavor servers add to make rolling deep through contested turf pay off.

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/gangs/16-drive-by-turf-bonus.lua. It loads the drive-by anim dict, detects passenger drive-by kills client-side, and reports them with a position…

πŸ”’ 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-side award β€” scoring on the client is spoofable; do the radius check and the point award server-side from the reported position.
  • Anim before load β€” using the aim dict before it loads no-ops; RequestAnimDict + while not HasAnimDictLoaded(dict) do Wait(0) end.
  • Unscoped bonus β€” crediting every kill defeats the design; gate on both the passenger-seat check (client) and the contested-radius + active-war check (server).

Corrective re-prompt: Send only the killer's server id and the death position from the client; in driveby:report reject unless the war is active and the position falls inside a contested radius, then add the bonus to the killer's gang and broadcast. Keep the passenger-seat check client-side as a pre-filter, never as the source of truth for points.

Framework Integration

  • ESX: exports['es_extended']:getSharedObject(); killer gang from xPlayer.getJob().name.
  • QBCore: exports['qb-core']:GetCoreObject(); read Player.PlayerData.gang.name in driveby:report.
  • QBox: exports.qbx_core:GetPlayer(src); player.PlayerData.gang.name; identical radius scoring.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] priced inside the $50-389 FiveM script band against a corpus median seller of $11.85K/mo (signal-scraper tebex_snapshot n=100), scaled for a stable flavor add-on.

Trend Signal

β†’ stable β€” inferred: Drive-by combat is a classic flavor; scoping the bonus to contested turf is a steady add-on, not a headline.

Sales Angle

Position as the mobile-warfare reward that pairs with any war suite. Recommended Tebex price $59-89.

Difficulty & Ship Time

intermediate Β· ships in 2-4h.