Garry's Mod

Garry's Mod

Simple ammo limitations [DEPRECATED, READ DESCRIPTION]
124 Comments
marlboro 1 Apr @ 11:05am 
this addon no longer works, unfortunately.
Ori 27 Mar @ 4:14am 
I thought this mod would provide an option to set limit to "SLAM" ammo type since you can't do so in the game. In future update perhaps?
Hispanic @ The Disco 2 Sep, 2024 @ 9:07am 
The mod author talks about the console commands and cfg files being more efficient at editing ammo limits but in all honesty I found this mod to be working flawlessly without much issue. An update would be nice but really what is there to update besides maybe some optimization here and there?
Bonuts_Goood 28 Jun, 2024 @ 4:59am 
NICE now I can start with 0 ammo! Thats all I ever wanted!
Nasty Ned 11 Apr, 2024 @ 8:48am 
I've discovered that Gmod's console commands for ammo limitaitons don't actually save, so you have to set them every single time you boot the game. So this addon still has a lot of utility.
guy 10 Dec, 2023 @ 9:37pm 
i got this because i had 18 rockets for no reason
Orion 9 Nov, 2023 @ 6:54am 
I hope you do remake this addon, the commands don't save, the cfg doesn't seem to work, not even setting the launch options work. It really fraggin' sucks.
Crigence 4 Nov, 2023 @ 7:43pm 
I still like this add-on. It's useful for collections in-which asking the player to manually set realistic ammo limits is a big ask. I think that if there was an alternate version that just had realistic defaults and was basically just a front-end for Garry's Mod's ammo settings then it would be perfect
Democratic Ice Noodle 1 Nov, 2023 @ 11:01am 
I do know the problem with the console ammo types is some common ammo types like any of the sniper ammo types do not have a command attached to them.
Speedy Von Gofast  [author] 1 Nov, 2023 @ 8:52am 
Also bear in mind that Gmod now has its own more functionnal ammo limitation that actually prevent ammo from being take if you're full.

Enter "gmod_maxammo 0" in the console then you can set individual ammo limit with "sk_max_357" for example.
Speedy Von Gofast  [author] 1 Nov, 2023 @ 8:49am 
I patched this up alongside with a small fix.

But with this mess of codes I made when I was a noob in coding (2016), I will maybe remake this from scratch someday
XResident-2 1 Nov, 2023 @ 4:21am 
Does anyone know of an addon like this? Since this no longer works:steamsad:
Goobert 27 Oct, 2023 @ 3:04am 
yep, addon broke. is a fix in the works? or is this addon considered unsupported now?
XResident-2 26 Oct, 2023 @ 8:50am 
Now this thing keeps showing error
[Simple ammo limitations] lua/autorun/ammolimit.lua:47: bad argument #4 to 'CreateConVar' (string expected, got boolean)
1. CreateConVar - [C]:-1
2. unknown - lua/autorun/ammolimit.lua:47
Fenrir 26 Oct, 2023 @ 8:06am 
Now this thing keeps showing error
[Simple ammo limitations] lua/autorun/ammolimit.lua:47: bad argument #4 to 'CreateConVar' (string expected, got boolean)
1. CreateConVar - [C]:-1
2. unknown - lua/autorun/ammolimit.lua:47
Vidgamenut 12 Sep, 2023 @ 6:35pm 
It would be cool if there was a mod that made it so npcs had limited ammo too and when they ran out they would switch to their melee weapon. For example when a combine ran out of ammo, they would pull out a stun baton or a rebel with a crowbar.
ManFr0Mars 30 Aug, 2023 @ 1:22pm 
You should add support for Half-Life: Source Ammo now That GMod Has Half-Life: Source Weapons
MaliceAndTragedy 28 Jul, 2023 @ 10:12am 
Ya'll the addon is old 💀💀💀
Jboy9786 14 Jul, 2023 @ 3:38am 
plz, make it so that this works like the default HL2 ammo limit, as in you won't use the pickup entity
Smytsidian 11 Jun, 2023 @ 6:31pm 
is there a way to fix it
Smytsidian 11 Jun, 2023 @ 6:28pm 
on this addon: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1124761531 once and a while it flickers from 9999 ammo to my set ammo
Pluck the Dragon 1 May, 2023 @ 12:50pm 
Can we have the ammo limitation for GM Doom?
ballsaSTEEL2001 5 Mar, 2023 @ 9:29am 
I would love to see the day that these affect the Quake weapons from those dope addons. God bless you brother
Fvynchynch 16 Dec, 2022 @ 4:24am 
I know this hasn't been updated in ages, but I hosted a session with a friend and the ammo limit doesn't work for some reason. Not sure what's going on, probably on my end, but no matter how low or high I set the limits, it doesn't change it from the default HL2 values.
Dave Norton Epic Grave Prank 14 Dec, 2022 @ 1:15am 
What happened to the TFA sliders?
LawlenMcVallen 29 Oct, 2022 @ 12:29pm 
@WolfOS I've actually found a workaround for the latter. (If I read that correctly) when starting a sandbox game, simply set the max ammo value in the setting bellow Start Game to ONE more than whichever is your highest number on this addon. For instance, mine is 450. Ill set my gamemode limit to 451. I'll be able to still pick up ammo however I'll be pinned at 450 for, let's just say, pulse ammo.
M. Winters 24 Oct, 2022 @ 1:33pm 
Despite their being better alternatives out there, honestly I have found this add-on to function optimally or meets my needs rather well. Although if there was one thing I would have liked, its probably for a proper max ammo limit where once you find additional ammo, the game either negates you from picking it up or you pick it up but then it deposits it. Although im pretty sure the second part already exists in another addon but I cant remember which..
Talon 15 Oct, 2022 @ 8:16am 
Apparently, the 'Ammo Limitation' option in Utilities is missing for me but I'm thankful there are console commands for setting that too.
Talon 15 Oct, 2022 @ 8:07am 
Oh, this might be exactly what I want after the Half-Life 2 Settings addon disappeared. :D
Jboy9786 29 Sep, 2022 @ 2:04am 
if this addon is still being supported plz make it like the default HL2 ammo limit (basically you won't 'pick up' the ammo entities when you walk into them when you have full ammo of that type)
LawlenMcVallen 14 Sep, 2022 @ 12:28pm 
@[CORRUPTED PD2 SAVE FILE] If it's custom ammo types you/the owner would have to add them in, if Arccw uses default ammo types them it'll just use the same as HL2
DemoChief 10 Aug, 2022 @ 8:30pm 
It was working for little bit then just randomly went away and never came back
combine soldier 25 May, 2022 @ 3:32am 
For me tab is working fine
DemoChief 9 Feb, 2022 @ 7:10pm 
No tab
Amneiya 13 Dec, 2021 @ 1:19pm 
no tab?
Bondrewd 11 Aug, 2021 @ 2:08pm 
the tab is missing. pls fix
Oatmeal D. 28 Jun, 2021 @ 4:34pm 
The tab are missing at utilities tab, so you have to use the console command
SpartanWar118 31 Jan, 2021 @ 8:10am 
The tab for the settings is missing
Smolzilla 14 Jan, 2021 @ 1:38pm 
SUPER useful! Thank you for making this for us to use! :ChipJoy::lovew:
Yharon 12 Jan, 2021 @ 1:37am 
suggestion: manually add new types of ammo limits
i find it a bit annoying that i have a TFA mod that adds another type of ammo not in the list
Fvynchynch 4 Dec, 2020 @ 11:09pm 
Dude, this is an awesome little addition to GMod! Having the ability to spawn with all the ammo within their limits makes things a little bit easier.

No more having to spam ammo spawns for my .357 guns anymore.
Just As Planned 13 Nov, 2020 @ 5:42pm 
FA:S weapons would be an awesome addition
LawlenMcVallen 12 Nov, 2020 @ 10:18am 
Would you consider adding FA:S 2.0 to that list of planned custom ammo? If not would you be okay giving someone such as myself a quick explanation on how we could add our own? For instance I've used a different CW2.0 base in the past and that's simple to change in the code, but I couldn't figure out how to add another. Given enough time I could probably do it but I also just wanted to say thank you for this addon, it's always been helpful when I've used it.
NICKOLAS78GR 11 Nov, 2020 @ 10:04pm 
@Destruction my god you are a legend
Taberone 30 Oct, 2020 @ 1:31pm 
I can't find it under utilities anymore? At least the console still works.
Pray For Glaz 24 Oct, 2020 @ 12:06am 
the ammo isn't given to me on spawn anymore
aristo 23 Oct, 2020 @ 11:31am 
i got this so i could have to do it like to old days, and consume ammo
Destruction 23 May, 2020 @ 12:54pm 
derp its a value thing not a slider.
Destruction 23 May, 2020 @ 12:48pm 
Recently, I noticed a "Max Ammo" slider when I was gonna start spamming a hundred shotgun shells at zombies. Intrigued, I started giving it random values, which immediately changed how much ammo I could hold. At 0 rounds, I noticed that I had HL2 ammo maximums.

And I never used this addon the whole time. I noticed this addon being a thing AFTER I noticed the slider.