AddonWeapons 2.6
13,995
191
-
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.
Commandline.txt
Commandline.txt allows you to add new categories to the menu, move weapons from one category to another, and set your own weapon prices. The file can be found in the AddonWeapons folder.
Available commands at this time:
CreateWeaponCategory(Name)
PutWeaponToCategory(ModelName, CategoryName)
SetWeaponCost(ModelName, IntCost)
Read more on GitHub
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.6
- Fixed a bug where custom weapon tints were not displayed on add-on weapons.
- Fixed a bug where the script would crash after buying a weapon and switching to another player.
- FPS should no longer drop when protagonists get close to each other.
2.5
- Added a Commandline.txt file that can be used to add new categories, move weapons from one category to another, and set weapon prices.
- Fixed a bug where MP characters couldn't buy components for a weapon.
- Fixed a bug where the component removed from the weapon would reappear when the script was reloaded.
- Fixed bug with drawing multiple menus on the screen.
- Exiting the weapon component menu now opens the previous page instead of closing the menu completely.
- The name of the selected weapon is now displayed in the components menu.
- Weapon tint prices are now consistent with GTA Online prices.
首次上传时间: 2024年5月25日
最后更新时间: 1小时前
最后下载: 16分钟前
All Versions
228个评论
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.
Commandline.txt
Commandline.txt allows you to add new categories to the menu, move weapons from one category to another, and set your own weapon prices. The file can be found in the AddonWeapons folder.
Available commands at this time:
CreateWeaponCategory(Name)
PutWeaponToCategory(ModelName, CategoryName)
SetWeaponCost(ModelName, IntCost)
Read more on GitHub
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.6
- Fixed a bug where custom weapon tints were not displayed on add-on weapons.
- Fixed a bug where the script would crash after buying a weapon and switching to another player.
- FPS should no longer drop when protagonists get close to each other.
2.5
- Added a Commandline.txt file that can be used to add new categories, move weapons from one category to another, and set weapon prices.
- Fixed a bug where MP characters couldn't buy components for a weapon.
- Fixed a bug where the component removed from the weapon would reappear when the script was reloaded.
- Fixed bug with drawing multiple menus on the screen.
- Exiting the weapon component menu now opens the previous page instead of closing the menu completely.
- The name of the selected weapon is now displayed in the components menu.
- Weapon tint prices are now consistent with GTA Online prices.
首次上传时间: 2024年5月25日
最后更新时间: 1小时前
最后下载: 16分钟前
-
@reaperone I figured it out. The problem is with the addon weapons themselves. For each one, go to it's shop_weapon file in common/data. Then, just below the WeaponComponents line, this needs to be added:
<availableInSP value="true" />
This will prevent the game from removing these weapons from your inventory on startup.2025年2月16日 -
-
hello how can i disable the ai spawns the add on weapons? i am playing lspdfr and backup comes with my add on weapons. Thanks in advance
2025年2月16日 -
-
@Hydraxonn It works, but when I wanna buy the Color for Widowmaker, the script shows error.
2025年2月18日 -
Does anyone know how to add tint color ?. I want the Widowmaker shows the correct tint in Ammunition
2025年2月20日 -
@andre500 I just noticed that you somehow broke custom tint names, i saw the code for it is still there on github but for whatever reason it does not work ingame, my Service Pistol for example no longer displays the custom tint names (yet i have WT_SRVCPSTL_9MM.txt in tints folder and WT_SRVCPSTL_9MM is the textLabel used in shop_weapon.meta, it worked fine previously but not anymore
2025年2月24日 -
PS. It just says generic "Livery *ID*" rather than the custom name, i guess there's a priority issue in there
2025年2月24日 -
-
@andre500 Also if you're gonna update the mod then can you please just add "Less Lethal" category as a default thing that's bound to GROUP_RUBBERGUN like i mentioned? Would be good to have that by default, especially since GROUP_RUBBERGUN is an unused group that exists in vanilla game and you're already supporting all of them (even Tranquilizer) so i don't see why this couldn't get added too
2025年2月26日 -
I am getting a massive FPS drop making the game unplayable when there are two or all three protagonists are together in one mission :(
2025年2月27日 -
Okay, I did some testing. There is something definitely wrong with version 2.5, I had to revert to 2.4 and the problem where the game becomes so laggy when the playable characters are together went away. Looking forward to 2.6 my dude, its a banger mod.
2025年2月27日 -
Seconded, been tearing my hair out to find the mod causing FPS drop during missions, this is fantastic on freeroam lol. Looking forward to the next update!
2025年2月28日 -
@ExenoChrono @xXAfr0Xx Sorry, I've been busy all this time. But now I'm starting to look at this bug and I will try to fix it soon and release an update.
8天前 -
@andre500 is there a way to get add on weapons to show up in menyoo or simpletrainer without having to manually type them in? i'm struggling to figure out why my menus can't simply just read my add on guns
8天前 -
@reversemodding As far as I know, these trainers can't automatically find Add-On weapons. This function is only in Zolika1351's Trainer, and in my AddonWeapons of course.
8天前 -
Hey so, i downloaded the mod, however it doesn't seem like any of the crates are loading in. I added the Addonweapons folder into GTA 5's folder but still nothin. Can anyone help?
1天前 -
-
@HeySlickThatsMe I need to get a hash of the GROUP_RUBBERGUN group in order to add it to AddonWeapons. Since it's not used, I can't find its hash in the existing documentation.
If it's not too much trouble, send me the gun with this group. I can get a hash through the game. You can contact me via Discord, the link is in the description.
However, I have fixed a bug with the display of tints names and other critical bugs in version 2.5.
43分钟前 -
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.