Garry's Mod

Garry's Mod

306 ratings
Universal Ammo 2.0!
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
294.185 KB
28 Mar, 2017 @ 5:36am
19 Aug, 2021 @ 10:56am
9 Change Notes ( view )

Subscribe to download
Universal Ammo 2.0!

Description
Having a hard time finding the right ammo for your weapon? Then this is the addon for you!

This allows you to fill up your ammo from just one box! It's perfect for servers with gun packs such as M9K, FA:S and CW2.0. Should also work on any Sandbox based gamemode.

Three ammo types
- Universal Ammo (for primary ammo)
- Universal Secondary Ammo
- Universal Infinite Ammo (held weapon will never run out of ammo)

In-game Config
In the spawn menu under Utilities->Universal Ammo->Ammo, you can configure the amount of ammo the Universal Ammo box will give you based on the ammo type.

DarkRP
Yes this supports DarkRP! All config is done in-game through a special DarkRP tab under Utilities->Universal Ammo which only appears in DarkRP! The ammo nows shows in the F4 menu under the ammo tab in DarkRP!

If you want a custom check, you will need to add the ammo manually to the DarkRP modification master. You can use the below, and edit as normal.
darkrpmodification/lua/darkrp_customthings/ammo.lua
DarkRP.createAmmoType("universal_ammo", { name = "Universal Ammo", model = "models/Items/BoxMRounds.mdl", price = 70, amountGiven = 1 -- allow universal ammo to stack, }) DarkRP.createAmmoType("universal_ammo_secondary", { name = "Universal Secondary Ammo", model = "models/Items/BoxMRounds.mdl", price = 70, amountGiven = 1 -- allow universal ammo to stack, }) DarkRP.createAmmoType("universal_ammo_infinite", { name = "Universal Infinite Ammo", model = "models/Items/BoxMRounds.mdl", price = 700, amountGiven = 1 -- ignored for infinite ammo, })

GitHub
https://github.com/zakarybk/Universal-Ammo
Popular Discussions View All (1)
6
22 May, 2021 @ 11:33pm
just use givecurrentammo console command
Ralsei in Spooky's Mansion
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?