Updated version!
This script allows you to deal with annoying gangs in rampage mode.
While walking surrounded by gang members, a mission may appear near you to deal with the gang. You will be given a choice: pay off or fight. If you leave there or go to save, the mission will disappear and you will again need to look for an opportunity to disassemble. After the showdown or ransom, the gang will not attack you for some time (1.5 - 2.5 hours).
Some missions (not from this script) can reset relations with gangs, so it may turn out that you fought or paid in vain.
The script was created and tested with game version 1.1
Corrections:
* I recently learned that global variables cannot be used, because... The script does not create new ones, but uses in-game ones. Now the script uses only local variables.
* A few minor changes.
v2.0:
To start a war, you do not need a marker; now the war starts by pressing the Y button. The possibility of war with the police has been added. After victory, the factions will not touch you until the next game session.
When saving, relationships with gangs are also saved to a file, so the script resets relationships when loading a game or saving.