Garry's Mod

Garry's Mod

Ammo Dropper
72 Comments
screwdriver lobotomy Nov 27, 2022 @ 10:48pm 
I get this error when I try to quick drop:
[Ammo Dropper] lua/autorun/client.lua:149: attempt to index a nil value
1. QuickDrop - lua/autorun/client.lua:149
2. unknown - lua/autorun/client.lua:157
3. unknown - lua/includes/modules/concommand.lua:54
TexasOmertosa Sep 29, 2022 @ 9:49pm 
nice
Syele May 14, 2022 @ 4:42am 
Can you make it compatitable with custom ammo types, I wanna be able to drop "medkit ammo" when Im playing with someone but the ammo type doesnt show up in the menu
мурмур)) Apr 4, 2022 @ 1:50pm 
Hello, I want to praise for this addon! But I still got a problem. I've looked at the lua files but haven't found anything related to the server command. I want to ask, does this addon support a command for the server? I'm not interested in the menu, but here I would like to throw out ammunition after death and with the help of the command
cigo Jul 24, 2021 @ 4:17am 
It'd be great if you could get CW support.
Jamesinator Jun 11, 2021 @ 7:43am 
Super underrated really well done Addon. great work but I have one question. IK that changing to darkrp boxes lets you drop any random amount of ammo instead of the set 45 for SMG1. But is there any way to make the darkrp box look like the HL2 supply box? that would look alot cooler.
Truescreen Apr 1, 2021 @ 4:25am 
Would it be possible to condense the ammo boxes that spray out of the player in all directions into a single entity? Like a backpack that gets dropped by the player containing all their ammo?
slav egg Mar 23, 2021 @ 11:09pm 
How to disable drop on death?
Gake Jan 20, 2021 @ 7:34pm 
Would it be possible to add functionality for dropping weapons too?
Professional Autist Jan 1, 2021 @ 10:49am 
i have errors even with out any mods does it still even work?
Shootist Dec 8, 2019 @ 12:23am 
Really liking the add-on. Makes feel good to be able to drop ammo for a friend in a a fight.
>KB> >KEKSQUAD Nov 28, 2019 @ 6:56am 
[Ammo Dropper] lua/autorun/shared.lua:341: attempt to index local 'data' (a nil
value)
1. GetMaxDropAmt - lua/autorun/shared.lua:341
2. OnRowSelected - lua/autorun/client.lua:97
3. OnClickLine - lua/vgui/dlistview.lua:429
4. unknown - lua/vgui/dlistview_line.lua:81

Still an issue when opening the ammodropper_menu. I can't adjust any of the sliders.
8Z  [author] Nov 27, 2019 @ 3:47pm 
I've cleaned up a lot of the code and removed most of the custom ammo entities.

DarkRP style ammo boxes are now default, and they should support every ammo type (including CW2, etc). Highly recommend using them.
SynthWave Aug 15, 2019 @ 1:43am 
i hope someone will read this
SynthWave Aug 15, 2019 @ 1:42am 
plz help me when i type ammodropper_menu in console nothing happens same with bind
Lincy May 17, 2019 @ 3:32am 
Hello. I really love this mod.

Is there happen a way where... players can just pickup ammunition from dropped weapons (like after killing an NPC or killing players) instead of grabbing the whole weapon you just picked up?

I really love to see that one.
Uklejamini Apr 19, 2019 @ 6:25am 
4.5 stars
TheHopelessThrumbo Apr 17, 2019 @ 9:18am 
Is it possible to read what ammunition the player has, and include it no matter it's unknown type?
HeavyMedic Oct 28, 2018 @ 2:11am 
5 stars
Ejou Jun 11, 2018 @ 12:51pm 
Can you pleeeeeease add more CW 2.0 ammo types into ammo dropper? Like from "Extra CW 2.0"?
Vladimir Vladimirovich Jun 2, 2018 @ 2:20am 
pls make no-colide option for admins, like if im type ammodropper_nocolide 1, any dropped amo will be w/o collide, because on servers, people can abuse your addon to crash
8Z  [author] Apr 24, 2018 @ 7:04pm 
@iron_fox Can you try again after the update? If this still happens, please check if there are any errors in console, and post a comment in the bug reporting thread if it persists.
Aleksander3453 Apr 24, 2018 @ 7:22am 
Woah nice! I am going to try it now.
8Z  [author] Apr 24, 2018 @ 7:00am 
By "within a month", I mean today! An huge update is released, adding CW2.0 support, death ammo drop, an options menu and more stuff!
8Z  [author] Apr 24, 2018 @ 3:56am 
I'm in the process of updating this addon. The new version will support multiple types of boxes (small and large), CW2.0 ammo, and death dropping. Estimated arrival date is within a month, sorry for the delay!
Ribbit Dec 15, 2017 @ 6:33pm 
just a suggestion but can you add ammo drop upon death?
Maxpowerammo Dec 10, 2017 @ 11:06pm 
ammodropper_quickdrop doesn't seem to work with AR2, SMG, or SLAM ammo.
zql9843 Dec 1, 2017 @ 10:45pm 
Can you make NPC drop ammo rather than weapons?
DeWomanizer 9000 Nov 25, 2017 @ 8:48pm 
Interesting, but very buggy, has a lot of conflicts with other not bad addons, spams errors in console-need in improvement.
8Z  [author] Nov 1, 2017 @ 6:36pm 
An update has been released, adding the feature to drop ammo for the weapon you are holding. The ConCommands are ammodropper_quickdrop and ammodropper_quickdrop_all (all ammo for the weapon you hold).
8Z  [author] Nov 1, 2017 @ 6:14pm 
@Maxpowerammo That can be done.
8Z  [author] Nov 1, 2017 @ 6:14pm 
@Hackcraft There IS a check on ammo count. You might have realized this if you have went through the code before calling me out.

Maxpowerammo Aug 30, 2017 @ 1:42am 
Another cool option would be use-only health and armor entities. Sometimes I've only taken 4 damage and don't want to use up a 25 hp medkit, especially if one of my buddies needs it more.
Zak Aug 28, 2017 @ 4:57pm 
Why haven't you added a check to make sure the player even has the ammo to drop in the first place.

"Everything is serverside secured; players cannot exploit this addon in a Roleplay server. (Unless you have enabled clientside lua, in which case you deserve it)" - Just learn to code instead.
Maxpowerammo Aug 22, 2017 @ 8:18pm 
Could you create a command that drops one ammo of your currently held gun? This way I could quickly give ammo to someone who needs it without having to fool around in the menu.
BrainyPepper Aug 20, 2017 @ 2:19pm 
I'm posting a screencap of my two comments somewhere it can be answered. Wish me luck.
BrainyPepper Aug 20, 2017 @ 2:15pm 
Understandible. Have a nice day.
8Z  [author] Aug 20, 2017 @ 8:42am 
Interesting suggestions, though I can imagine both of these ideas of being techinically challenging to do.
I'm rather occupied with my personal life right now, but perhaps someone else can use the idea.
BrainyPepper Aug 19, 2017 @ 3:40pm 
Alternatively, I had an idea for an addon that expands interactivity by prompting a player for how they would interact with something; a small window would open above an interactible when +USE is employed unto them, prompting something along the lines of 'LClick to use / RClick to pick up / E to cancel'. These two (this comment, and my comment below this one) ideas are ones I have been dwelling on for a while, but haven't been able to create. I have nothing else to do with them, I guess.
BrainyPepper Aug 19, 2017 @ 3:34pm 
I have an idea for a simple but effective addon, if you're willing. Ideally, crouching should activate for players when they are swimming, as the only change crouching in water makes is that one can swim lower; neither the animation nor swimming speed changes. It always disturbed/disturbs me that the walking collisionbox is the same as the swimming collisionbox, is all.
Hoshino✨ Aug 11, 2017 @ 8:10pm 
好好好,腐竹加进服务器呗
BrainyPepper Aug 4, 2017 @ 10:58am 
Good.
8Z  [author] Aug 3, 2017 @ 4:57pm 
@Miga Smull the buckshot duplication bug has been fixed. I have verified that 357 and XBowBolt ammo does not duplicate.
BrainyPepper Aug 3, 2017 @ 1:50pm 
I think it's the majority of them, but I'm not sure due to my history of a bad memory. I'm quite sure that .357 rounds, generic shotgun ammo, and rebar ammo (crossbow bolts) duplicate like this.
8Z  [author] Aug 2, 2017 @ 8:58pm 
@miga Smull which ammo is able to be cloned?
Aleksander3453 Aug 2, 2017 @ 10:58am 
@Miga Smull
Yeah, I just noticed that the buckshot (shotgun) ammo is STILL having problems.
I think that we are dropping 8 buckshot ammo, but picking up 20 of them.
BrainyPepper Aug 2, 2017 @ 10:37am 
There seems to be an exploit involving dropping ammo and picking it up again to duplicate ammount. I don't know if it's RPGXGM doing that (I don't even have an ammo-pickup multiplier perk yet) or something else.
8Z  [author] Jul 28, 2017 @ 12:09pm 
@OneGeyFan2311 An update has been pushed that solves this problem. The entity name for shotgun ammo was incorrect ( item_box_buckshot is the correct name ).
8Z  [author] Jul 28, 2017 @ 11:57am 
@OneGeyFan2311 I'll look into it.
Aleksander3453 Jul 27, 2017 @ 11:45am 
And sorry if i keep commenting but... I got a bug, nobody can drop ammo for the shotgun, and i get this in the console.
Attempted to create unknown entity type ammo_buckshot_small!