Gang Wars β QBCore Script / Addon
The script is built for performance-first servers and includes aggressive AI behavior, model preloading, and full entity cleanup.
π Overview
DHGangWar is a highly optimized, fully dynamic NPC Gang Zone & Territory Warfare script designed for QBCore servers. This system adds hostile NPC gangs that protect their turf, attack nearby players, and create immersive danger zones around the map β all while being extremely performance-friendly.
This is NOT the old laggy gang scripts you see everywhere. DHGangWar was rebuilt from scratch with:
β Dynamic spawning/despawning
β Model preloading to prevent stutter
β Hostile AI that instantly engages players
β Global sync β all players see the same gangs
β Massive performance improvements (0.00ms idle)
Perfect for servers wanting high-risk/high-reward zones, criminal danger areas, or PVE combat content without breaking performance.
β¨ Key Features
β Dynamic Gang Zones: Gangs only spawn when a player is within range (Configurable β default 300m). When players leave, the gang despawns automatically.
β All Players See the Same Gangs: The server manages visibility globally; if one player triggers a spawn β EVERY player sees that gang.
β Aggressive AI Combat: Immediate aggro on any nearby player, configurable sight/hearing range and combat aggressiveness, multiple model variations per gang, and multiple weapon pools
β Ultra-Optimized: 0.00ms idle (no ped loops per tick), preloaded models to prevent pop-in, no mass ped processing, spawns only when needed, and cleans up all entities automatically
β Easy to Configure: config.lua allows adding unlimited gangs with their own name, ped models, weapons, coordinates, spawn radius, number of peds, and combat behavior
β Great for Criminal RP or PVE Servers
π For License Owners
You are allowed to:
β Edit, customize, and expand the script
β Modify client/server logic for your serverβs needs
You may NOT:
β Resell, redistribute, or repackage this script
β Share the script files with others
β Upload the script to GitHub or other repositories
β Sell modified versions
β Claim authorship of this script