-
Notifications
You must be signed in to change notification settings - Fork 9
Removing Weapons from Gangs
You can prevent gangs from using certain weapons by editing the ModOptions.xml file.
In the ModOptions file, look for the <buyableWeapons> section (search for it if necessary). This section contains all the weapons currently buyable and usable by all Gangs created by this mod.
A buyable/usable weapon in this list is declared like this:
<BuyableWeapon>
<wepHash>DoubleBarrelShotgun</wepHash>
<price>210000</price>
</BuyableWeapon>
In it, the weapon's type (Double Barrel Shotgun in this example) and price ($210000) are defined. Those values can be edited, but the type must be a valid one (valid ones are defined here: https://github.com/crosire/scripthookvdotnet/blob/master/source/scripting_v3/GTA/Weapons/WeaponHash.cs ).
So, in order to remove this weapon and prevent all Gangs (including the one you control!) from using it, you just have to delete this whole entry from your ModOptions file, starting with the <BuyableWeapon> until, and including, the </BuyableWeapon> text.
It's probably better to edit files while the game isn't running in order to not have your changes overwritten, but you should also be fine if you Reload scripts fast enough (Reloading scripts is necessary in most cases).
After the edit, any Gang that had already bought the removed weapon will lose it and no longer use it! Other Gangs also won't be able to buy it.
What if you want the weapon back in the Buyables list?
If you want it back, the best option is probably using the "Reset Weapon List and Prices to Defaults" option ingame, in the menu opened with the B button by default (this option is inside the "Mod Settings Menu" submenu).
You'll lose all the changes made manually (changing prices etc) and all removed weapons will be back. Gangs that had bought those weapons before you removed them won't have them back; they'll have to buy it again.