Garry's Mod

Garry's Mod

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