AddonWeapons 2.4
10,402
167
-
2024年5月29日
The box of weapons is located in the two Ammu-nations with a shooting range in Los Santos.
The script finds new weapons automatically, just install them like any addon mod (eg. cars).
IMPORTANT: This mod by itself doesn't bring any new weapons to the game.
Join my Discord server: https://discord.gg/vvxmKP5y5J
Source code: https://github.com/sruckstar/AddonWeapons
Installation
1. Install ScriptHookV
2. Install ScriptHookVDotNet
3. Install LemonUI (SHVDN3)
4. Move the scripts folder into your main GTAV folder (press Replace the files in the destination if Windows asks you to).
MP Characters Support
The script saves purchased weapons in the inventory separately for male and female MP characters. But there is an unpleasant bug: all Ammu-nations are closed if you change the skin of the main character to another one. Solution: change the skin directly in the shop before buying weapons, not on the street.
Trainer Mode (BETA)
You can customize AddonWeapons into trainer mode. In this case, the weapon purchase menu can be opened anywhere. Set the menu activation key in the AddonWeapons\settings.ini file
Weapon components (for mod authors)
To display weapon components in the menu, fill in the weapon shop.meta file correctly.
Weapon tints (for mod authors)
In order for the tints names to be displayed correctly in the purchase menu, you need to adhere to Rockstar standards: either use a set of 8 tints from standard weapons, or a set of 32 tints from MKII weapons. If you are not adding all the tints in your mod, or combining them from different types of weapon, you will need to create a text file in the AddonWeapons/tints folder with the name of the weapon from weapon shop.meta, and write all the tints names line by line. Otherwise, the menu will display tints without names (Tint 1, Tint 2, etc.), or the names will not correspond to the actual weapon tint.
Changelog
2.4
- Added inventory saving for MP characters
- Fixed KeyNotFoundException error
2.3
- Fixed crash due to missing weapon components dictionary key
2.2
- Fixed a bug where some weapons were not saved in the inventory after purchase
- Fixed a bug where inactive protagonists were missing weapon components
2.1
- Fixed incorrect display of purchased components in the menu for MKII weapons.
- Fixed a bug where weapon ammo was not saved when exiting the game and switching between characters.
- Fixed bug where MKII weapon ammo was missing when installing new components
- Fixed a crash when installing stun gun tint
2.0
- Weapons, components, ammo, and tints are now saved in the inventory when switching characters and exiting the game
- Added the ability to remove purchased components from weapons by reselecting the component in the purchase menu
- Fixed a bug where a component was replaced by another and had to be purchased again
- Fixed a bug where duplicate icons of installed components would disappear after exiting the menu
- Weapons can now be purchased in all Ammunation Shops
- Removed an unnecessary empty paint item for MKII weapons
1.2
- Added the Bottom Dollar Bounty livery for the Stun Gun (PS5 and Xbox Series exclusive)
- The mod no longer needs to be translated into other languages: it now uses the text strings from the game itself
- Minor bug fixes for automatic detection of DLC weapons: removed duplicate railgun, fixed Snowball Launcher name display
1.1
- Added tints support for MP and Addon weapons
- The menu can now be opened anywhere. Set menu activation key in AddonWeapons\settings.ini file
- Added Portuguese translation (thanks to niziul)
1.0 (BETA):
- Initial release
首次上传时间: 2024年5月25日
最后更新时间: 2024年11月17日
最后下载: 4分钟前
164个评论
More mods by andre500:
The box of weapons is located in the two Ammu-nations with a shooting range in Los Santos.
The script finds new weapons automatically, just install them like any addon mod (eg. cars).
IMPORTANT: This mod by itself doesn't bring any new weapons to the game.
Join my Discord server: https://discord.gg/vvxmKP5y5J
Source code: https://github.com/sruckstar/AddonWeapons
Installation
1. Install ScriptHookV
2. Install ScriptHookVDotNet
3. Install LemonUI (SHVDN3)
4. Move the scripts folder into your main GTAV folder (press Replace the files in the destination if Windows asks you to).
MP Characters Support
The script saves purchased weapons in the inventory separately for male and female MP characters. But there is an unpleasant bug: all Ammu-nations are closed if you change the skin of the main character to another one. Solution: change the skin directly in the shop before buying weapons, not on the street.
Trainer Mode (BETA)
You can customize AddonWeapons into trainer mode. In this case, the weapon purchase menu can be opened anywhere. Set the menu activation key in the AddonWeapons\settings.ini file
Weapon components (for mod authors)
To display weapon components in the menu, fill in the weapon shop.meta file correctly.
Weapon tints (for mod authors)
In order for the tints names to be displayed correctly in the purchase menu, you need to adhere to Rockstar standards: either use a set of 8 tints from standard weapons, or a set of 32 tints from MKII weapons. If you are not adding all the tints in your mod, or combining them from different types of weapon, you will need to create a text file in the AddonWeapons/tints folder with the name of the weapon from weapon shop.meta, and write all the tints names line by line. Otherwise, the menu will display tints without names (Tint 1, Tint 2, etc.), or the names will not correspond to the actual weapon tint.
Changelog
2.4
- Added inventory saving for MP characters
- Fixed KeyNotFoundException error
2.3
- Fixed crash due to missing weapon components dictionary key
2.2
- Fixed a bug where some weapons were not saved in the inventory after purchase
- Fixed a bug where inactive protagonists were missing weapon components
2.1
- Fixed incorrect display of purchased components in the menu for MKII weapons.
- Fixed a bug where weapon ammo was not saved when exiting the game and switching between characters.
- Fixed bug where MKII weapon ammo was missing when installing new components
- Fixed a crash when installing stun gun tint
2.0
- Weapons, components, ammo, and tints are now saved in the inventory when switching characters and exiting the game
- Added the ability to remove purchased components from weapons by reselecting the component in the purchase menu
- Fixed a bug where a component was replaced by another and had to be purchased again
- Fixed a bug where duplicate icons of installed components would disappear after exiting the menu
- Weapons can now be purchased in all Ammunation Shops
- Removed an unnecessary empty paint item for MKII weapons
1.2
- Added the Bottom Dollar Bounty livery for the Stun Gun (PS5 and Xbox Series exclusive)
- The mod no longer needs to be translated into other languages: it now uses the text strings from the game itself
- Minor bug fixes for automatic detection of DLC weapons: removed duplicate railgun, fixed Snowball Launcher name display
1.1
- Added tints support for MP and Addon weapons
- The menu can now be opened anywhere. Set menu activation key in AddonWeapons\settings.ini file
- Added Portuguese translation (thanks to niziul)
1.0 (BETA):
- Initial release
首次上传时间: 2024年5月25日
最后更新时间: 2024年11月17日
最后下载: 4分钟前
-
@andre500 It did not fix the issue when it comes to missions with all three protagonists or two. For example when I tried to replay Hood Safari and The Big Score (Obvious Approach), I got an error says this below. I still get unhandled exception with Addon Weapons. Also for example Obvious approach, when it automatically switches to Franklin when drilling vault, there's no addon weapons in his weapon inventory.
14:18:21] [DEBUG] Loading assembly AddonWeapons.dll ...
[14:18:21] [INFO] Found 1 script(s) in AddonWeapons.dll resolved to API version 3.7.0 (target API version: 3.6.0).
[14:18:21] [DEBUG] Loading assembly LemonUI.SHVDN3.dll ...
[14:18:21] [INFO] Found 0 script(s) in LemonUI.SHVDN3.dll (target API version: 3.6.0).
[14:18:21] [DEBUG] Instantiating script AddonWeapons ...
[14:18:21] [INFO] Started script AddonWeapons.
[14:19:47] [ERROR] Caught unhandled exception:
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.2024年11月17日 -
@andre500 Basically the problem was the script somehow stopped working when on a mission with either all three or just two protagonists in a mission. For example in the mission Hood Safari, Franklin has the AddOn Weapons I bought in the inventory wheel in the beginning. Later, during the shootout, when I switch to Trevor, he doesn't have the AddOn weapons, just only weapons excluding from Online. That's the issue when it comes to missions with three or two protagonists involved and got the error message every time.
2024年11月18日 -
-
@andre500 Actually I managed to figure out a solution to solve the problem I previously mentioned. I used a mod gamconfiguration along with packfile and limit adjuster to resolve the issue, and they appear to work in mission without causing the error and along with the mod stop working message.
2024年12月13日 -
-
Will this save my add-on weapons in my inventory after I closed and opened the game?
2024年12月22日 -
Works. The guns are saved after closing and starting the game again. Only issue I see is that the El Strickler guns has no model in-game and it crashes the game if you try and shoot it.
7天前 -
when I Buy a addon Weapon a weapon in the same slot deletes itself,and some components in mk2 weapons do not load
6天前 -
@andre500 Hey i have a request, could you add GROUP_RUBBERGUN to the mod? If possible name it "Less Lethal"
5天前 -
-
@andre500 Hi, im currently trying to get my addon weapon to work, can you tell me the criteria for naming Text label in weapon component to show up in game
4天前 -
@andre500 Also if possible, make a way to overwrite a category for specific weapon, some of my gun mods use GROUP_PISTOL to have driveby support by default without having to edit vehiclelayouts file, which makes some of these guns show up in pistol category in this mod
4天前 -
Hello i am having problem with @HeySlickThatsme 's weapon dlcs.
He makes addon weapons as you might know, with components and all. however i cannot see the components or buy them in your menu despite the fact that his dlcs contain a shop.weapon.meta
https://prnt.sc/CHSw7kvEauj-2天前 -
@Reaver14 Wait, which weapon are you testing? Some of my old releases aren't fully functioning and i have to yet update them
2天前 -
Service pistols, extended smg, golden smg, and; auto crossbow which only shows a few attachments not all of them.
thx for these excellent mods btw2天前 -
@Reaver14 Extended SMG and Gold SMG should work fine after the update, the rest isn't updated to work with addon weapons
1天前
This script only spawns addon weapons, but does not create them.
So far there is no ready tool to convert replaceable weapons to addon, but you can use these tools:
https://www.gta5-mods.com/tools/vweaponstoolki-addon-weapon-generator
https://www.gta5-mods.com/misc/modding-dlc-pack-v
For weapon creators:
Add all components to the shop_weapon.meta file so that AddonWeapons can detect them.