Garry's Mod

Garry's Mod

Universal Ammo 2.0!
108 Comments
HypFox 19 Jul, 2023 @ 2:00pm 
do they work on arccw weapons ?
mastergaming1236 25 Dec, 2022 @ 12:11am 
does it support arc
Zak  [author] 30 Aug, 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 30 Aug, 2022 @ 8:42am 
Added support for this Universal Ammo addon to my Instant Ammo addon https://steamproxy.net/sharedfiles/filedetails/?id=2530699015
Chef Boy RD 2 Aug, 2022 @ 7:18pm 
Does this work for ttt would love to use it for when me and my friends play.
wispee 6 Apr, 2022 @ 7:47am 
@Zak thank you
Zak  [author] 6 Apr, 2022 @ 4:43am 
@wispee Here you go. Didn't realise it wasn't already linked - https://github.com/zakarybk/Universal-Ammo
wispee 5 Apr, 2022 @ 3:18am 
Can you provide a github link?
Or just anywhere else to download the lua files
Zak  [author] 2 Feb, 2022 @ 3:30pm 
@DarkIcy The normal universal ammo worked for me with the linked Modern warfare weapons - but the infinite ammo didn't.
DarkIcy 1 Feb, 2022 @ 2:17pm 
Hey @Zak can You support This https://steamproxy.net/sharedfiles/filedetails/?id=2459720887 .Universal Ammo Won't work on Modern warfare weapons Can you Fix That?
Zak  [author] 7 Dec, 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 7 Dec, 2021 @ 5:02am 
works with only one weapon, and that's on TFA base
Zak  [author] 7 Dec, 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 7 Dec, 2021 @ 4:20am 
infinite ammo does not work. just flashes and explodes when used
Zak  [author] 19 Aug, 2021 @ 11:08am 
@RakZ Awesome, thanks for letting me know :D
RakZ 19 Aug, 2021 @ 11:02am 
Thank you so much it works now!
Zak  [author] 19 Aug, 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 19 Aug, 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 19 Aug, 2021 @ 10:01am 
and also shotgun ammo is missing from the list
already tried to reset to default
RakZ 19 Aug, 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] 19 Aug, 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 19 Aug, 2021 @ 4:04am 
not working with m9k? with m9k pistols it does but not with any shotguns or snipers or assault rifles
Zak  [author] 11 Aug, 2021 @ 10:29am 
@Aqua should work with M9K
Aqua 10 Aug, 2021 @ 6:55pm 
doesnt work on M9K??
Zak  [author] 3 Aug, 2021 @ 11:04am 
@Supremaciiiii Which weapon/pack are you having problems with?
[SFC] Supremaciiiii 3 Aug, 2021 @ 12:32am 
Infinite ammo does not work on any weapon
Zak  [author] 1 Jul, 2021 @ 12:55am 
@tarik Thanks, I'll take a look
odium 30 Jun, 2021 @ 3:53pm 
not working on some TFA weapons insurgency pack example : shotguns and smgs
Luca 12 Jun, 2021 @ 4:31pm 
@Zak I added you as a friend to discuss some things
Zak  [author] 5 Jun, 2021 @ 9:35am 
@Kirbo It should work with any weapon pack
Kirbo 5 Jun, 2021 @ 8:05am 
it works for TFA?
Zak  [author] 27 May, 2021 @ 2:41pm 
np :)
Memeologyy 26 May, 2021 @ 7:39pm 
Thank you for the response.
Memeologyy 26 May, 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] 26 May, 2021 @ 1:31pm 
@Memeologyy What's the number for AR2 under Spawn Menu->Utilities->Universal Ammo->Ammo?
Zak  [author] 26 May, 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 26 May, 2021 @ 1:04pm 
It doesn't give you AR2 ammo.
Memeologyy 26 May, 2021 @ 12:48pm 
Hey, this just stopped working today.
Zak  [author] 25 May, 2021 @ 3:09pm 
@Wedge There's now an in-game config instead
Zak  [author] 18 Apr, 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 17 Apr, 2021 @ 5:44pm 
Would this work if I pot this in my client side in my server?
Zak  [author] 18 Sep, 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 16 Sep, 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
Wedge 2 May, 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] 31 Mar, 2020 @ 1:47am 
Might be under other in entities.
TNT.TROLLER 30 Mar, 2020 @ 10:00pm 
I cant find it in my menu where is it?
Zak  [author] 29 Mar, 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
Wavyyy 29 Mar, 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 4 Mar, 2020 @ 10:52am 
i send you friend request so u can help me faster
thomas the thermonuclear bomb 4 Mar, 2020 @ 10:51am 
@Zak the only enities in the config is Universal ammo