Garry's Mod

Garry's Mod

Universal Ammo 2.0!
109 Comments
amhir Jan 4 @ 1:00am 
wtf why did it break my spawn menu
HypFox Jul 19, 2023 @ 2:00pm 
do they work on arccw weapons ?
mastergaming1236 Dec 25, 2022 @ 12:11am 
does it support arc
Zak  [author] Aug 30, 2022 @ 12:41pm 
@TheCatGuy Awesome! sorry that it must have been awkward to add support for it as I hadn't ever expected it to be adapted like this. Nice work though!

I noticed that my code is copyright protected since I never added a license. I've added MIT now.
ThatCatGuy Aug 30, 2022 @ 8:42am 
Added support for this Universal Ammo addon to my Instant Ammo addon https://steamcommunity.com/sharedfiles/filedetails/?id=2530699015
Chef Aug 2, 2022 @ 7:18pm 
Does this work for ttt would love to use it for when me and my friends play.
wispee Apr 6, 2022 @ 7:47am 
@Zak thank you
Zak  [author] Apr 6, 2022 @ 4:43am 
@wispee Here you go. Didn't realise it wasn't already linked - https://github.com/zakarybk/Universal-Ammo
wispee Apr 5, 2022 @ 3:18am 
Can you provide a github link?
Or just anywhere else to download the lua files
Zak  [author] Feb 2, 2022 @ 3:30pm 
@DarkIcy The normal universal ammo worked for me with the linked Modern warfare weapons - but the infinite ammo didn't.
DarkIcy Feb 1, 2022 @ 2:17pm 
Hey @Zak can You support This https://steamcommunity.com/sharedfiles/filedetails/?id=2459720887 .Universal Ammo Won't work on Modern warfare weapons Can you Fix That?
Zak  [author] Dec 7, 2021 @ 5:20am 
@Sergei Sorry but that's not very helpful. Are you able to be a bit more specific with any of the weapons where it doesn't work? What's an example of a weapon and which weapon pack is it part of? Also which gamemode are you playing on? Thanks
Sergei Dec 7, 2021 @ 5:02am 
works with only one weapon, and that's on TFA base
Zak  [author] Dec 7, 2021 @ 4:51am 
@Sergei Which weapon are you using/weapon pack?

Please note that it doesn't give you an infinite clip. All it does is to give you back all the ammo you've shot after you reload.
Sergei Dec 7, 2021 @ 4:20am 
infinite ammo does not work. just flashes and explodes when used
Zak  [author] Aug 19, 2021 @ 11:08am 
@RakZ Awesome, thanks for letting me know :D
RakZ Aug 19, 2021 @ 11:02am 
Thank you so much it works now!
Zak  [author] Aug 19, 2021 @ 10:58am 
@RakZ I've just pushed an update which should fix the issue. For whatever reason the addon is failing to find ammo on the version of M9k you're using, so I've added a fallback to search through registered ammo types with the game instead of relying on reading SWEP data.

You will probably need to restart GMod for the update. Hope this fixes your problem, if not feel free to message me again :)
RakZ Aug 19, 2021 @ 10:03am 
ohh and smg ammo is missing too in the chat it says
Sorry, this weapon cannot use universal ammo!
all m9k weapos
RakZ Aug 19, 2021 @ 10:01am 
and also shotgun ammo is missing from the list
already tried to reset to default
RakZ Aug 19, 2021 @ 9:59am 
Okay so the m9k weapons take pulse ammo and i cant seem to find it anywhere on the universal ammo list
Zak  [author] Aug 19, 2021 @ 4:45am 
@RakZ Can you please link which pack you're using. Every pack for me works.

Might be worth checking in the Spawn Menu -> Utilities -> Universal Ammo -> Ammo and make sure the ammo the weapon takes isn't set to 0. If you still have problems it's probably worth trying the reset to defaults button to see if that helps.
RakZ Aug 19, 2021 @ 4:04am 
not working with m9k? with m9k pistols it does but not with any shotguns or snipers or assault rifles
Zak  [author] Aug 11, 2021 @ 10:29am 
@Aqua should work with M9K
Aqua Aug 10, 2021 @ 6:55pm 
doesnt work on M9K??
Zak  [author] Aug 3, 2021 @ 11:04am 
@Supremaciiiii Which weapon/pack are you having problems with?
[SFC] Supremaciiiii Aug 3, 2021 @ 12:32am 
Infinite ammo does not work on any weapon
Zak  [author] Jul 1, 2021 @ 12:55am 
@tarik Thanks, I'll take a look
odium Jun 30, 2021 @ 3:53pm 
not working on some TFA weapons insurgency pack example : shotguns and smgs
Luca Jun 12, 2021 @ 4:31pm 
@Zak I added you as a friend to discuss some things
Zak  [author] Jun 5, 2021 @ 9:35am 
@Kirbo It should work with any weapon pack
KIRBO Jun 5, 2021 @ 8:05am 
it works for TFA?
Zak  [author] May 27, 2021 @ 2:41pm 
np :)
Memeologyy May 26, 2021 @ 7:39pm 
Thank you for the response.
Memeologyy May 26, 2021 @ 7:39pm 
I changed the number, it didn't matter if it 0-80, no effect. I used different weapons, it just refused to give AR2, it gave pistol, etc. I tried on my server, disconnected, tried singleplayer, to no avail.
Zak  [author] May 26, 2021 @ 1:31pm 
@Memeologyy What's the number for AR2 under Spawn Menu->Utilities->Universal Ammo->Ammo?
Zak  [author] May 26, 2021 @ 1:22pm 
@Memeologyy Sorry about this, can you give me a few more details?

Are you one singleplayer or multiplayer?
Have you tried different SWEPs? Which one isn't working?
Memeologyy May 26, 2021 @ 1:04pm 
It doesn't give you AR2 ammo.
Memeologyy May 26, 2021 @ 12:48pm 
Hey, this just stopped working today.
Zak  [author] May 25, 2021 @ 3:09pm 
@Wedge There's now an in-game config instead
Zak  [author] Apr 18, 2021 @ 2:45am 
@ZOLILE Nope, this needs to be installed on the server to work. The functions which pick which ammo to give you are all server-side.
ANOMALY Apr 17, 2021 @ 5:44pm 
Would this work if I pot this in my client side in my server?
Zak  [author] Sep 18, 2020 @ 9:31am 
@SneakyKiller584 The only way to do that would be to extract the addon and put the extracted version onto your server in the addons folder then edit addons/extracted-folder/lua/autorun/server/universal_ammo_config.lua
SneakyKiller584 Sep 16, 2020 @ 9:23am 
Hey man where can i find the file to change the amount given if im usuing a hosting network rather than my PC?
I cannot seem to change it
Koba May 2, 2020 @ 6:50am 
Yo so my DOI grenades can get 20/10 ammo from boxes even though i changed the max ammo limit way down and whatever I change it to it always gives 20/10 ammo.
https://cdn.discordapp.com/attachments/286538019668754442/706137809500635186/unknown.png
This is the coding, im using "grenade" which is the same ammo type used in the grenade ammo files. I would happy call and share screens on discord (Wedge#3232) if needed and would really appricate the help: https://cdn.discordapp.com/attachments/286538019668754442/706137809500635186/unknown.png
Zak  [author] Mar 31, 2020 @ 1:47am 
Might be under other in entities.
TNT.TROLLER Mar 30, 2020 @ 10:00pm 
I cant find it in my menu where is it?
Zak  [author] Mar 29, 2020 @ 2:19pm 
@WavvesMalone
In the bit that gives the player ammo you might be able to do something like this.
for key, name in pairs(game.GetAmmoTypes()) do
ply:GiveAmmo(10, name)
end
Medium Jacob Mar 29, 2020 @ 2:11pm 
I've been looking for something like this, but instead of supplying ammo for your held weapon, it supplies ammo for all weapons in your inventory. Any thoughts?
thomas the thermonuclear bomb Mar 4, 2020 @ 10:52am 
i send you friend request so u can help me faster