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).
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access β pay once
- All 510 prompts β the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates β new niches as the market moves
$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β¦
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access β pay once
- All 510 prompts β the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates β new niches as the market moves
$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+Hideoutsserver-side and decide there. - Anim before load β the get-up
TaskPlayAnimno-ops if the dict is not loaded; alwaysRequestAnimDict+while not HasAnimDictLoaded(dict) do Wait(0) end. - One-sided net event β defining
gangwar:respawnAton only one side breaks the death round-trip; both sides needRegisterNetEvent+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 viaxPlayer.getJob().name, grade via.getJob().grade, admin viaxPlayer.getGroup(). - QBCore:
exports['qb-core']:GetCoreObject(); gang viaPlayer.PlayerData.gang.name, permission viaQBCore.Functions.HasPermission(src, 'admin'). - QBox:
exports.qbx_core:GetPlayer(src); read gang fromplayer.PlayerData.gang.nameand gate the war setter withIsPlayerAceAllowed.
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.