Garry's Mod

Garry's Mod

npcDrops - NPC Drop System
204 Comments
THE ROARING KNIGHT 28 Jun @ 6:06pm 
i honestly think you should add a search menu and all that like zippys group spawner to make it eazier to get the entities and such
canefe  [author] 27 Feb @ 4:19am 
@Ori
The npc ids can differ from the one when you rightclick-copy. For example in that mod when I copy the zombine torso it copies as 'npc_headcrabzombinetorso_soldier' but when it's actually spawned you can see on the console it spawns as 'npc_zombie_torso'.
You have to put the second one when you are creating npcdrops. That means it's not possible to have drops for different kind of zombies provided by that mod. npcDrops doesn't support that right now.
Y0ru_B!rb 24 Feb @ 6:33pm 
Does not work anymore :<
Ori 21 Feb @ 6:17am 
Doesn't work with "Sabre-aN's Headcrab Zombie Mod", is there a work-around for this?
canefe  [author] 5 Nov, 2024 @ 6:29am 
Because you are putting the model and not an entity name in there. Use execute lua and 'spawn prop in front'
Kiyu 22 Sep, 2024 @ 8:35am 
Hey,
I've enjoyed this mod over the years, but there seems to be an issue with spawning props as entities to drop, regardless of the NPC type. I need NPCs to drop props to assist in seamless gameplay featuring a crafting system. Here's the error:

[1]:
["data"] = [{"shipment":false,"rate":1.0,"ent":"models/props_c17/oildrum001.mdl"}]
["npc_id"] = npc_zombie
got you
["models/props_c17/oildrum001.mdl"]:
["ent"] = models/props_c17/oildrum001.mdl
["rate"] = 1
["shipment"] = false
Attempted to create unknown entity type models/props_c17/oildrum001.mdl!


Whether or not this mod is discontinued, I would appreciate if you looked into this error. Have a nice day!
gabigabo2003 6 Sep, 2024 @ 6:17am 
Pls can you make a new video pls for a bigger cality, is hard to read the commande you do great sir, and also, that work with props ?? because i dont know if is me or the mod, is hard sir
BigBessie 15 May, 2024 @ 12:03am 
WARNING! Carry on reading! Or you will die, even if you only looked at the word warning! Once there was a little girl called Clarissa, she was ten-years-old and she lived in a mental hospital, because she killed her mom and her dad. She got so bad she went to kill all the staff in the hospital so the More- government decided that best idea was to get rid of her so they set up a special room to kill her, as humane as possible but it went wrong the machine they were using went wrong. And she sat there in agony for hours until she died. Now every week on the day of her death she returns to the person that reads this letter, on a monday night at 12:00a.m. She creeps into your room and kills you slowly, by cutting you and watching you bleed to death. Now send this to ten other profiles on this one site, and she will haunt someone else who doesn't. This isn't fake. apparently, if u copy and paste this to ten comments in the next ten minutes u will have the best of your life. TIC TOC
canefe  [author] 20 Mar, 2024 @ 3:51am 
No. Only players.
Random Freedom Stalker 20 Mar, 2024 @ 2:30am 
Like, when an NPC kills an NPC they have a chance at getting that drop
Random Freedom Stalker 20 Mar, 2024 @ 2:30am 
If only NPCs can get drops also
fedor 12 Dec, 2023 @ 8:19am 
WARNING! Carry on reading! Or you will die, even if you only looked at the word warning! Once there was a little girl called Clarissa, she was ten-years-old and she lived in a mental hospital, because she killed her mom and her dad. She got so bad she went to kill all the staff in the hospital so the More- government decided that best idea was to get rid of her so they set up a special room to kill her, as humane as possible but it went wrong the machine they were using went wrong. And she sat there in agony for hours until she died. Now every week on the day of her death she returns to the person that reads this letter, on a monday night at 12:00a.m. She creeps into your room and kills you slowly, by cutting you and watching you bleed to death. Now send this to ten other profiles on this one site, and she will haunt someone else who doesn't. This isn't fake. apparently, if u copy and paste this to ten comments in the next ten minutes u will have the best of your life. TIC TOC
Castle 30 Aug, 2023 @ 5:24am 
Hope that there will be an update to make it work with more than just the vanilla NPCs at some point.
croaux 2 Aug, 2023 @ 7:03am 
Is there any way to make an NPC drop multiple of the same item? NPCs can drop two different items, but if I want somebody to drop 2 AR2 Energy Balls, the NPC will only drop 1. Is there any workaround for this?
Andiisaboy_12 3 Jul, 2023 @ 1:46am 
░░░░░▄▄▄░░▄██▄░░░
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ THIS IS BOB
▄░▐░░░▄▄░█░▀▀ ░░
▀█▌░░░▄░▀█▀░▀ ░░ COPY AND PASTE HIM,
░░░░░░░▄▄▐▌▄▄░░░ SO, HE CAN TAKE
░░░░░░░▀███▀█░▄░░ OVER THE WORKSHOP!
░░░░░░▐▌▀▄▀▄▀▐▄░░ AND THAT, WILL TELL VALVE
░░░░░░▐▀░░░░░░▐▌░░ TO ADD THIS ITEM!
░░░░░░█░░░░░░░░█░░░
░░░░░▐▌░░░░░░░░░█░░
FizumaBaguncinha 18 May, 2023 @ 5:59pm 
only works in npcs that i kill
Bumface 10 Apr, 2023 @ 11:27am 
I know a few others have asked this, but is there any way to assign unique drops to unique variants of NPCs, like elites and shotgun soldiers? It looks like they're all listed as npc_combine_s, and I can't find any way to give the unique variants specific drop lists.
ImaCat1211 30 Jan, 2023 @ 3:42pm 
how do I spawn items with more than one word? I've been trying for a hour and can't get it
Formal Lizard 5 Dec, 2022 @ 1:50pm 
plot twist: you died 3 years ago to that and are living out what you wish you lived out
minax 23 Nov, 2022 @ 5:53pm 
person below me is stupid
Doodles 5 Nov, 2022 @ 7:10pm 
WARNING! Carry on reading! Or you will die, even if you only looked at the word warning! Once there was a little girl called Clarissa, she was ten-years-old and she lived in a mental hospital, because she killed her mom and her dad. She got so bad she went to kill all the staff in the hospital so the More- government decided that best idea was to get rid of her so they set up a special room to kill her, as humane as possible but it went wrong the machine they were using went wrong. And she sat there in agony for hours until she died. Now every week on the day of her death she returns to the person that reads this letter, on a monday night at 12:00a.m. She creeps into your room and kills you slowly, by cutting you and watching you bleed to death. Now send this to ten other profiles on this one site, and she will haunt someone else who doesn't. This isn't fake. apparently, if u copy and paste this to ten comments in the next ten minutes u will have the best of your life. TIC TOC
canefe  [author] 1 Oct, 2022 @ 10:32am 
😁
THE ROARING KNIGHT 30 Sep, 2022 @ 7:35pm 
wait a minute i didn't have this installed, dumb me.
THE ROARING KNIGHT 27 Sep, 2022 @ 6:58am 
@cometopapa when i type !npcdrops in chat it doesn't work
gat 8 fingle 6 Jul, 2022 @ 8:52pm 
combine really be carrying mayo on them 💀
Stinky chimp 15 Jun, 2022 @ 10:28am 
this works fine for me idk what the issue is
wheels1390 27 Mar, 2022 @ 6:05pm 
it doesnt work I tried everything in the video
Sam Lore 24 Mar, 2022 @ 4:17pm 
then the problem is prob with thus, i still can use this mod functions normally
Boo 24 Mar, 2022 @ 3:16am 
I've used this mod in the past, and I have no idea why this is no longer functional, but I cannot pull up the GUI through the !npcdrops chat command anymore.
Sam Lore 9 Nov, 2021 @ 1:04pm 
atrick21, thats basically the source engine problem, this is the code for these three variants combines, and linkz, try use no npc drops with this mod, the only what you choose will drop.
canefe  [author] 9 Nov, 2021 @ 5:12am 
lol
Levi Animator™ 9 Nov, 2021 @ 5:02am 
and this mod is very complex becuz i try typing in crate for the drop and there was no crate so what els can i spawn or atleast give me some commands
Levi Animator™ 9 Nov, 2021 @ 4:58am 
wow 360p on the video i mean that sucks i cant even read what you are typing
Atrick21 12 Sep, 2021 @ 5:57pm 
Is there an option to make specific item drops for the different combine? because whenever I put npc_combine_s the item drops for all three combine npcs but I want to make the items specific for each.
ZOOTIEZ 11 Sep, 2021 @ 7:57pm 
I'd really like the option to enable or disable multiple drops. They are almost like a pinata now.
Linkz 14 Jul, 2021 @ 8:34am 
Hello there, amazing job! Just one question... Is it possible to select to drop just one item from the loot table of the npc? It will be amazing!
Lualp 13 Jul, 2021 @ 9:50am 
İŞTE TÜRK, İŞTE AZİM, İŞTE BAŞARI
AngeLiq 10 Apr, 2021 @ 5:34pm 
Is there a way to like...import and export different configs? Like, you make a config where a bunch of zombies and combines and other NPCs all can drop weapons ammo etc, then you move that config elsewhere and make a new config which has them only drop healing items, and be able to change between configs by importing and exporting/cutting and pasting the configs.
(That would be a good thing to add if you ever remake this and it isn't already there.)
ninja "fornite" blevins 25 Feb, 2021 @ 8:41am 
is there a way to quickly add multiple drops to an npc? like a copy and paste or something? this works great, but gets slightly tedious when i have to make 5 replica drops for like 7 different npcs. I wanted to ask if theres a way to edit drops while in the files, cuz you can copy paste there, but i couldnt find npcDrops in the data folder, where i assumed it was
Sam Lore 6 Feb, 2021 @ 7:32am 
ye ye, i noticed this when changed map, this is blessing, thank you for the mod, helping me alot.
canefe  [author] 6 Feb, 2021 @ 5:01am 
@zerozephyrum drops you create are saved, so yeah, no need to do every server start.
Sam Lore 6 Feb, 2021 @ 4:51am 
if i put a example, combine elite to drop battery, he will drop in every server i start without need to config? if this work like that this will help alot
Lord Of Wolfgirls 12 Jan, 2021 @ 12:40pm 
anyway to make it so that it applies the chance on anything dying instead of a specific npc? would love that to not have to spawn ammo when i run out/start with obscene amounts
Democratic Ice Noodle 5 Dec, 2020 @ 4:35pm 
While I find myself coming back to this addon once in awhile god I wish there was a way to copy drops from one NPC to another.
Harbinger 23 Nov, 2020 @ 12:35pm 
i am trying to make combine npc drop stuff but im getting their id wrong since there is two words on each type ( soldier - elite ...) does anyone know how to make them drop ? NOTE : i did copy their id and past it
Dexter Morgan 22 Nov, 2020 @ 10:21am 
selam türk aga
Mochi 16 Nov, 2020 @ 8:55pm 
Sorry to bother bud, but i keep getting this error when i try to enter the command.

<npcDrops>: Error occured with database. Please reset npcDrops.
<npcDrops>: Menu is loading...

[ERROR] lua/includes/extensions/net.lua:182: net.ReadType: Couldn't read type 33
1. error - [C]:-1
2. ReadType - lua/includes/extensions/net.lua:182
3. ReadTable - lua/includes/extensions/net.lua:121
4. func - lua/npcdrops/sh_npcdrops.lua:2155
5. unknown - lua/includes/extensions/net.lua:32

ninja "fornite" blevins 5 Nov, 2020 @ 11:57am 
fixed it, thanks!
canefe  [author] 5 Nov, 2020 @ 2:42am 
if you toggled option "npcDrops will discard rate chance." in settings, drops will always spawn.
ninja "fornite" blevins 4 Nov, 2020 @ 2:28pm 
for some reason - every item i add theres always a 100% chance of it dropping, even if i make some of them very rare. Am i doing something wrong, or...?