gta6/prompts
gangs
Vaultadvancedgangs

War Respawn at Hideout

ESX war-respawn override that revives downed members at their owned hideout instead of the hospital while a gang war is active, with the respawn point decided 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
~70 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A working ESX war-respawn override: while a gang war is active, a downed member who would normally wake at the hospital instead revives at their gang's owned hideout. The respawn destination is resolved entirely by the server from the live war state and hideout ownership, so it is a fair, exploit-resistant QoL upgrade that roleplay servers pair with their turf/war system.

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/19-war-respawn-at-hideout.lua. It implements a client death-edge detector that requests a respawn, a server resolver that returns the hideout…

πŸ”’ 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-chosen respawn β€” Claude sends the coords from the client, letting anyone hideout-revive with no war. Keep activeWars + Hideouts server-side and decide there.
  • Anim before load β€” the get-up TaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + while not HasAnimDictLoaded(dict) do Wait(0) end.
  • One-sided net event β€” defining gangwar:respawnAt on only one side breaks the death round-trip; both sides need RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "The client is choosing the respawn coordinates. Refactor so the client only sends gangwar:requestRespawn, and the server reads the caller's gang, checks activeWars[gang] and Hideouts[gang], and is the only side that returns coords. Gate gangwar:setWarState to the admin group."

Framework Integration

  • ESX: exports['es_extended']:getSharedObject(); gang via xPlayer.getJob().name, grade via .getJob().grade, admin via xPlayer.getGroup().
  • QBCore: exports['qb-core']:GetCoreObject(); gang via Player.PlayerData.gang.name, permission via QBCore.Functions.HasPermission(src, 'admin').
  • QBox: exports.qbx_core:GetPlayer(src); read gang from player.PlayerData.gang.name and gate the war setter with IsPlayerAceAllowed.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] $50-389 script band Γ— est units/mo for a stable niche, against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo).

Trend Signal

β†’ stable β€” inferred: War-respawn is a combat QoL mechanic tied to the war state; steady demand, depends on a hideout system.

Sales Angle

Position as a war-pack add-on for servers already running turf/hideout content β€” it removes the cross-map hospital walk and keeps fights where the action is. Recommended Tebex price $69.

Difficulty & Ship Time

advanced Β· ships in 2-4h.