Garry's Mod

Garry's Mod

Ammo Dropper
72 Comments
sigaret 27 Nov, 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
M∅nArch 29 Sep, 2022 @ 9:49pm 
nice
Syele 14 May, 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
мурмур)) 4 Apr, 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
jihadd 24 Jul, 2021 @ 4:17am 
It'd be great if you could get CW support.
Jamesinator 11 Jun, 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 1 Apr, 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 23 Mar, 2021 @ 11:09pm 
How to disable drop on death?
Gake 20 Jan, 2021 @ 7:34pm 
Would it be possible to add functionality for dropping weapons too?
LokaknyMiłośnikDrewna 1 Jan, 2021 @ 10:49am 
i have errors even with out any mods does it still even work?
Shootist 8 Dec, 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 28 Nov, 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] 27 Nov, 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 15 Aug, 2019 @ 1:43am 
i hope someone will read this
SynthWave 15 Aug, 2019 @ 1:42am 
plz help me when i type ammodropper_menu in console nothing happens same with bind
Lincy 17 May, 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 19 Apr, 2019 @ 6:25am 
4.5 stars
TheHopelessThrumbo 17 Apr, 2019 @ 9:18am 
Is it possible to read what ammunition the player has, and include it no matter it's unknown type?
HeavyMedic 28 Oct, 2018 @ 2:11am 
5 stars
Ejou 11 Jun, 2018 @ 12:51pm 
Can you pleeeeeease add more CW 2.0 ammo types into ammo dropper? Like from "Extra CW 2.0"?
ffffffffffffffffffffffffffffffff 2 Jun, 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] 24 Apr, 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 24 Apr, 2018 @ 7:22am 
Woah nice! I am going to try it now.
8Z  [author] 24 Apr, 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] 24 Apr, 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 15 Dec, 2017 @ 6:33pm 
just a suggestion but can you add ammo drop upon death?
Maxpowerammo 10 Dec, 2017 @ 11:06pm 
ammodropper_quickdrop doesn't seem to work with AR2, SMG, or SLAM ammo.
zql9843 1 Dec, 2017 @ 10:45pm 
Can you make NPC drop ammo rather than weapons?
Zya The Real Infestor 25 Nov, 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] 1 Nov, 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] 1 Nov, 2017 @ 6:14pm 
@Maxpowerammo That can be done.
8Z  [author] 1 Nov, 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 30 Aug, 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 28 Aug, 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 22 Aug, 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 20 Aug, 2017 @ 2:19pm 
I'm posting a screencap of my two comments somewhere it can be answered. Wish me luck.
BrainyPepper 20 Aug, 2017 @ 2:15pm 
Understandible. Have a nice day.
8Z  [author] 20 Aug, 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 19 Aug, 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 19 Aug, 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.
小鸟游星怒 11 Aug, 2017 @ 8:10pm 
好好好,腐竹加进服务器呗
BrainyPepper 4 Aug, 2017 @ 10:58am 
Good.
8Z  [author] 3 Aug, 2017 @ 4:57pm 
@Miga Smull the buckshot duplication bug has been fixed. I have verified that 357 and XBowBolt ammo does not duplicate.
BrainyPepper 3 Aug, 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] 2 Aug, 2017 @ 8:58pm 
@miga Smull which ammo is able to be cloned?
Aleksander3453 2 Aug, 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 2 Aug, 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] 28 Jul, 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] 28 Jul, 2017 @ 11:57am 
@OneGeyFan2311 I'll look into it.
Aleksander3453 27 Jul, 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!