Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

On the PC version of Grand Theft Auto V, the quickest documented way to make non-player characters (peds) fight is the SimpleGangWar ScriptHookVDotNet script. Install ScriptHookV and ScriptHookVDotNet, copy the script files into the game’s scripts folder, then choose enemy and ally spawn points in-game. For full control over models, targets and combat behavior, write a small ScriptHookVDotNet script using World.CreatePed and Task.FightAgainst.

This workflow is for PC single-player modding. The available documentation does not establish a supported, non-modded method for PlayStation or Xbox, and it does not document a GTA Online-safe approach.

What you need

  • A PC installation of GTA V that can load ScriptHookV and ScriptHookVDotNet scripts.
  • A backup of your game files and save data. Keep modded files out of any GTA Online installation or profile.
  • ScriptHookV and ScriptHookVDotNet installed according to their own instructions.

SimpleGangWar’s repository records ScriptHookV 1.0.3411.0 and ScriptHookVDotNet 3.7.0-nightly.14 as the versions tested for the January 2025 game state. Compatibility can change after a Rockstar game update, so a script that worked previously may need a newer dependency or may stop loading until its author updates it.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Method 1: Set up a gang war with SimpleGangWar

Install the script

  1. Install ScriptHookV and ScriptHookVDotNet in the GTA V directory used by your PC installation.
  2. Start the game once so ScriptHookVDotNet creates the required folders if they are not already present.
  3. Create or open Grand Theft Auto V/scripts.
  4. Copy SimpleGangWar.cs and SimpleGangWar.ini into that scripts folder. Keep the .ini file beside the script so its settings can be read.

Choose the two sides

  1. Load into GTA V single-player and move to the location where the enemy team should appear.
  2. Press B, the default setup hotkey, to mark the enemy spawn location.
  3. Move to the location for your allied team and press B again when prompted.
  4. After both locations are confirmed, the script spawns the two teams and assigns their combat behavior.

If the groups stand around instead of engaging, move the spawn points closer together. The project README warns that peds can idle when the two points are too far apart.

#1 Best Overall
Grand Theft Auto V: Premium Edition - PC [Online Game Code]
  • GRAND THEFT AUTO V When a young street hustler, a retired bank robber and a terrifying psychopath land themselves in trouble, they must pull off a series of dangerous heists to survive in a city in which they can trust nobody, least of all each other.
  • GRAND THEFT AUTO ONLINE Discover an ever-evolving world of choices and ways to play as you climb the criminal ranks of Los Santos and Blaine County in the ultimate shared Online experience.
  • THE CRIMINAL ENTERPRISE STARTER PACK The Criminal Enterprise Starter Pack is the fastest way for new GTA Online players to jumpstart their criminal empires with the most exciting and popular content plus $1,000,000 bonus cash to spend in GTA Online - all content valued at over GTA$10,000,000 if purchased separately.
  • This game will no longer support Windows 7 or 8 operating systems starting January 30, 2024.

Control and end the battle

  • Press N to pause or resume spawning.
  • Press B twice to enter and confirm battle shutdown. The script removes both living and dead peds that it spawned.

The project is described as a script “to create a basic battle between two teams.” Its GTA5-Mods listing identifies version 2.4.1, last updated February 1, 2025, and says the author considered it working with the latest official GTAV version as of January 2025.

SimpleGangWar settings you can tune

Open SimpleGangWar.ini in a text editor and review the available options before spawning a large battle. The documented configuration covers:

Rank #2
Grand Theft Auto V - PC
  • Will take full advantage of the power of new generation systems and PC to deliver across-the-board enhancements including increased resolution and graphical detail, denser traffic, greater draw distances, upgraded AI, new wildlife, and advanced weather and damage effects for the ultimate open world experience.
  • The biggest, most dynamic and most diverse open world ever created and now packed with layers of new detail.
  • Grand Theft Auto V blends storytelling and gameplay in new ways as players repeatedly jump in and out of the lives of the game’s three lead characters, playing all sides of the game’s interwoven story.
  • Includes Grand Theft Auto Online, the ever-evolving Grand Theft Auto universe.
  • All new content and gameplay created and released since the launch of Grand Theft Auto Online including new Jobs, an arsenal of new weapons, scores of new vehicles, new properties and player customizations
  • Ped models and weapons
  • Health, armor and weapon accuracy
  • Combat movement and combat range
  • Maximum living peds and overall spawn limits
  • Wanted-level behavior and map blips
  • Cleanup of spawned entities
  • Relationship-group processing

Movement modes include stationary, defensive, offensive, suicidal, disabled and random. Start with modest living-ped and spawn limits; increasing both at once can make a scene harder to control and increases the number of entities the script must clean up.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When peds attack the wrong characters

The README documents a relationship-group option for situations in which spawned peds unexpectedly fight mission peds. Enable the relationship-group handling supplied by the script, or test the battle in a clean single-player scene without active mission characters. This setting is safer than trying to fix every hostile relationship manually after a battle has started.

Rank #3
Grand Theft Auto V Enhanced + Great White Shark Card - PC [Online Game Code]
  • Experience entertainment blockbusters Grand Theft Auto V and Grand Theft Auto Online — now upgraded for a new generation with stunning visuals, faster loading, 3D audio, and more, plus exclusive content for GTA Online players.
  • Welcome to Los Santos - When a young street hustler, a retired bank robber, and a terrifying psychopath find themselves entangled with some of the most frightening and deranged elements of the criminal underworld, the U.S. government, and the entertainment industry, they must pull off a series of dangerous heists to survive in a ruthless city in which they can trust nobody — least of all each other. Current PC players can transfer both GTAV Story Mode progress and GTA Online characters and progression with a one-time migration from the legacy version of GTAV to GTAV Enhanced.
  • Stunning Visuals - Enhanced levels of fidelity and performance with new graphics modes including ray tracing features such as ambient occlusion and global illumination, ray traced shadows and reflections, support for AMD FSR and NVIDIA DLSS, and more.*
  • Faster Loading - Quicker access to the action as the world of Los Santos and Blaine County load in faster than ever before by using SSD and DirectStorage on supported devices.
  • Immersive Controls - Feel new levels of responsiveness with dynamic resistance via the Adaptive Triggers on the DualSense wireless controller, from directional damage to weather effects, rough road surfaces to explosions, and much more.*

Method 2: Write a custom ScriptHookVDotNet script

Custom code is preferable when you need a specific roster, weapon loadout, target assignment or battle logic that the ready-made configuration does not expose. The basic pattern is:

  1. Spawn each ped with World.CreatePed(model, position).
  2. Store the returned ped objects in a list so you can address them later.
  3. Assign a target with ped.Task.FightAgainst(otherPed).
  4. When the scene is over, stop tasks with Task.ClearAllImmediately() and remove the spawned entities with Delete().

A three-ped test can assign a circular set of targets:

Rank #4
Grand Theft Auto V
  • This Certified Refurbished product is tested and certified to look and work like new. The refurbishing process includes functionality testing, basic cleaning, inspection, and repackaging. The product ships with all relevant accessories, a minimum 90-day warranty, and may arrive in a generic box.
myPeds[0].Task.FightAgainst(myPeds[1]);
myPeds[1].Task.FightAgainst(myPeds[2]);
myPeds[2].Task.FightAgainst(myPeds[0]);

That example demonstrates direct targeting, not a complete team system. For two teams, keep separate lists, assign each member an opponent from the other list, and add checks for dead or deleted peds before issuing new tasks. Your script should also retain every spawned ped so a cleanup routine can remove them when you reload the script or leave the scene.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Ready-made script or custom code?

Decision factor SimpleGangWar Custom ScriptHookVDotNet code
Setup speed Fast: install two files, choose two spawn points and start. Slower: requires writing, compiling and debugging a script.
Models and weapons Controlled through the configuration file’s documented options. Explicit control in code for each spawned ped.
Movement and combat range Preset movement modes and configurable combat behavior. Can be extended with your own task and distance logic.
Spawn-count limits Built-in maximum living-ped and spawn-limit settings. You must implement limits and lifecycle checks.
Relationship safety Includes relationship-group processing for unwanted attacks on mission peds. You must manage relationship groups and target selection yourself.
Cleanup Battle shutdown removes living and dead spawned peds. Call ClearAllImmediately() and Delete() in your own cleanup path.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common problems and fixes

The script does not load

  • Confirm that ScriptHookV and ScriptHookVDotNet are installed in the correct GTA V directory.
  • Check that both files are directly inside Grand Theft Auto V/scripts, not in a nested folder.
  • Verify the dependency versions against your current game build. The versions recorded above were tested for the January 2025 state, not every later update.

The teams spawn but do not fight

  • Bring the two spawn points closer together.
  • Check combat movement and range settings in the .ini file.
  • Test away from mission peds and enable the script’s relationship-group processing if spawned characters select unintended targets.

Dead bodies or peds remain after testing

  • Use the documented shutdown sequence: press B twice and confirm.
  • If you are running custom code, clear each ped’s task and call Delete() for every object you created.
  • Reload the single-player session before testing again if a failed script left entities behind.

Can Director Mode or Menyoo do this?

The documented workflow here relies on ScriptHookV and ScriptHookVDotNet. It does not establish a reliable, standalone Director Mode or Menyoo procedure for making two independently spawned groups fight each other. Those tools may be used alongside other mods in some setups, but a reproducible method and version compatibility are not established by the available documentation.

Platform and online limits

Because both documented methods depend on PC files and ScriptHook components, they are not instructions for the console editions. No supported non-modded PlayStation or Xbox procedure is established, and no GTA Online-safe method is documented. Use these experiments only in single-player, keep backups, and remove or disable mod files before attempting any online session.

Frequently Asked Questions

What is the easiest way to make peds fight in GTA 5?

On PC single-player, install SimpleGangWar with ScriptHookV and ScriptHookVDotNet, copy its .cs and .ini files into Grand Theft Auto V/scripts, then use B to set enemy and ally spawn points.

How do I stop a SimpleGangWar battle?

Press B twice and confirm the shutdown. The script is designed to remove both living and dead peds that it spawned.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I make specific peds attack one another?

Yes, with a custom ScriptHookVDotNet script: create them with World.CreatePed, assign targets with Task.FightAgainst, and clean them up with Task.ClearAllImmediately() and Delete().

Quick Recap

Bestseller No. 2
Grand Theft Auto V - PC
Grand Theft Auto V - PC
Includes Grand Theft Auto Online, the ever-evolving Grand Theft Auto universe.
$36.99
Bestseller No. 4
Bestseller No. 5

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.