Garry's Mod

Garry's Mod

ULX Infinite Ammo
111 Comments
Cry0nix 11 Oct, 2022 @ 12:58pm 
When I enable the command, all the explosive weapons from this pack don't work, as well as the demo swep pack weapons, but all the hitscan weapons work fine.

Here's the Soldier SWEPs: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=724346973
Here's the Demo: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=772321027
Green toilet man 5 Aug, 2022 @ 5:17am 
it says !infammo isn't a command please fix
kotori 8 Feb, 2022 @ 6:16am 
hi
WireJockey 23 Dec, 2021 @ 6:18am 
i tried and it didn't work for me at all
Octoling Girl and Steve 13 Feb, 2021 @ 12:01am 
okay
apoc  [author] 5 Dec, 2020 @ 11:32am 
It should work @SFX SCARED, I actually updated it a long time ago to make it work with the TFA base, I haven't checked in recent years though
Der Adipöse Schäferhund 5 Dec, 2020 @ 4:46am 
unless TFA uses a completely different ammo system than any other weapon

yes
Ult Sonica The Hedgehog 5 Dec, 2020 @ 12:30am 
does it work with Tfa guns to?
Piss Pot 29 Oct, 2020 @ 6:48pm 
I downloaded All the stuff but it says !infammo is an unknown command. I also dont have the Cmmd tab for some reason plz help
apoc  [author] 27 Jun, 2020 @ 3:47pm 
Just pushed an update that should fix that
Der Adipöse Schäferhund 27 Jun, 2020 @ 2:34am 
Hey, guess what.
I found another bug.
The medkit breaks when infinite ammo is enabled.
The ammo is always set to 0, meaning it can't heal.
apoc  [author] 27 Jun, 2020 @ 12:20am 
you're welcome, sorry it took a year lol thanks for the help with hl:s and the other errors. HL:S weapons not working was actually a much larger issue where I was only using the original gmod ammo types, so there was probably a bunch of custom sweps that didn't work if they made their own ammo type or used the newer ones. So super big catch there
Der Adipöse Schäferhund 27 Jun, 2020 @ 12:15am 
Also, thanks for finally getting around to fixing this.
apoc  [author] 27 Jun, 2020 @ 12:14am 
Oh, if that just came from stripping the player it should be fixed then. Also, didn't test with the hl:2 beta weapons specifically but it *should* work
apoc  [author] 27 Jun, 2020 @ 12:12am 
The file exists in two addons error you have is kinda hard to solve, since I cant reproduce it. But later this weekend or when I get some time I can try to fix it more
Der Adipöse Schäferhund 27 Jun, 2020 @ 12:12am 
So, weapons like the gluon gun or the flamer from the HL:2 beta pack?
apoc  [author] 27 Jun, 2020 @ 12:05am 
Gotcha thanks. Just published the update that seems to fix hl:s weapons and the stripped weapons errors. Also updated to stop using outdated code so more sweps using strange ammo setups should be supported now as well.
Der Adipöse Schäferhund 26 Jun, 2020 @ 11:53pm 
You get HL:S content by downloading and mounting the game.

When you restart Garry's Mod you should be able to load into a map and find the weapons in the spawnmenu.
apoc  [author] 26 Jun, 2020 @ 10:59pm 
(haven't pushed the strip weapons update yet though, gonna see if the hls fix can get in with it first)
apoc  [author] 26 Jun, 2020 @ 10:59pm 
I fixed the strip weapons, I'm downloading half life source right now. I think thats how you get HLS guns in game? Will see if I can fix those tonight too
Der Adipöse Schäferhund 26 Jun, 2020 @ 9:47pm 
Plus, Half-Life: Source weapons are still non-functional.
Der Adipöse Schäferhund 26 Jun, 2020 @ 9:44pm 
File exists in two addons - possible conflicts! lua/ulib/shared/hook.lua (ULib and ULX Infinite Ammo)

[ERROR] lua/ulx/modules/sh/infammo.lua:58: Tried to use a NULL entity!
1. GetClass - [C]:-1
2. fn - lua/ulx/modules/sh/infammo.lua:58
3. unknown - lua/ulib/shared/hook.lua:109

So, the fix for the disconnect error works, this is what happens when you strip a player that has infinite ammo enabled.
This one is also spam and creates lots of lag.
Der Adipöse Schäferhund 26 Jun, 2020 @ 7:29pm 
I mean if you need testing grounds, I have a 128 slot server.
#shamelessplug
apoc  [author] 26 Jun, 2020 @ 4:13pm 
I just updated the addon to stop the errors on player disconnect and also a slight performance fix. I don't have a larger multiplayer server to test but testing using local servers with friends and bots it seems to have fixed the problem. Please inform me if it doesn't work.
Der Adipöse Schäferhund 25 Jun, 2020 @ 11:22am 
Everyone has pasted the error.
Kill for fun 25 Jun, 2020 @ 2:09am 
I lied
here it is

[ULX Infinite Ammo] lua/ulx/modules/sh/infammo.lua:32: Tried to use a NULL entity!
1. Alive - [C]:-1
2. nextevent - lua/ulx/modules/sh/infammo.lua:32
3. unknown - lua/dlib/modules/hook.lua:1076

Kill for fun 24 Jun, 2020 @ 11:27pm 
It works! Sorry I tried replicating the error and noticed it was cause by a ulx++ pack :steamsad: my b I'm dumb.
apoc  [author] 24 Jun, 2020 @ 7:39pm 
can you copy and paste the errors if possible?
Der Adipöse Schäferhund 5 Mar, 2020 @ 8:46am 
When a player that had it on leaves, the whole server will lag because the script keeps running and seems to spam errors, because it can't find the right player.
Purple 5 Mar, 2020 @ 6:55am 
My console on server goes berserk after enabling it, any thaughts?
nillysigger0894 7 Nov, 2019 @ 1:27pm 
for some reason it doesnt work (i have ulib and ulx, but when i enable only ulib,ulx,and infinite ammo it doesnt show in utilites.)
Timtee [CVHN] 19 Sep, 2019 @ 9:29am 
The only issue is that this addon tends to cause issues with addons that have guns that already technically have infinite ammo, and in those cases, it'll remove it from you after a bit where the command errors because it doesn't know what to do whilst active with zed weapon.
DC2 28 Jul, 2019 @ 5:47pm 
:tobdog:
DC2 28 Jul, 2019 @ 5:47pm 
what do type in for infinite ammo?
Der Adipöse Schäferhund 23 Jul, 2019 @ 1:03pm 
HL:S weapons dont work
nadanican 23 Jul, 2019 @ 12:21pm 
I got an addon where I could shoot out of cars, best decision of my life. Thank you!

~nadsterdahmer
Der Adipöse Schäferhund 30 May, 2019 @ 7:48pm 
xgui in console or !menu in chat
bumper car professional 30 May, 2019 @ 11:45am 
how do you get the ulx menu, i have both ulx admin mod and ulib so how do you use it
Der Adipöse Schäferhund 29 May, 2019 @ 6:31pm 
Okay, a little more info:
The error-spam happens whenever a client that had used infinite ammo disconnects.
It also happens when a clients inventory is empty while infinite ammo is enabled for the client.
Hope this actually helped.
apoc  [author] 29 May, 2019 @ 6:02pm 
The ULX Menu. This is an addon for the ULX admin mod only.
bumper car professional 29 May, 2019 @ 10:36am 
What do you mean in menu? Which menu?
Der Adipöse Schäferhund 21 May, 2019 @ 12:48pm 
File exists in two addons - possible conflicts! lua/ulib/shared/hook.lua (ULib and ULX Infinite Ammo)

[ERROR] lua/ulx/modules/sh/infammo.lua:34: Tried to use a NULL entity!
1. GetClass - [C]:-1
2. fn - lua/ulx/modules/sh/infammo.lua:34
3. unknown - lua/ulib/shared/hook.lua:109

same issue here
Malice Murdock 28 Apr, 2019 @ 6:51am 
Hey, I don't have TFA installed but i do have CW Sweps and doom 3 sweps if that matters. but at the moment my servers console is getting spammed with this:
[ERROR] addons/ulx/lua/ulx/modules/sh/infammo.lua:32: Tried to use a NULL entity!
1. Alive - [C]:-1
2. fn - addons/ulx/lua/ulx/modules/sh/infammo.lua:32
3. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
apoc  [author] 27 Apr, 2019 @ 9:09am 
bamsy, I've not tested it a whole lot on servers recently, can you copy what the errors say?
Bamsy 27 Apr, 2019 @ 6:53am 
creates shit loads of lua errors when no one is on my server.
Caboochie 23 Apr, 2019 @ 6:02pm 
sweet it works
thx dude
apoc  [author] 23 Apr, 2019 @ 5:12pm 
@exmantik you first need to have ulx installed then you just type that command in the gmod chat
Caboochie 22 Apr, 2019 @ 11:37pm 
so, im a bit of a noob a g-mod, but how can I use the command "!infammo EXMANTiK"? Where do i go?
Toby.Tcg 10 Mar, 2019 @ 6:00pm 
Ok so in regards to the bug i described earlier. What happens is that wen someone dies, there is an unkown percentage that they infinite ammo is disabled, and needs to be turned back on. Sometimes it remains on, sometimes it doesn't. It would be cool if you could make it to where when enabled, it stays enabled even if you died, and only turns off if you turn it off yourself. idk if that is possible though
Xuno 10 Mar, 2019 @ 4:45am 
Thanks!