Garry's Mod

Garry's Mod

Mystery Box Entity (Sandbox/TTT) (2023 Update)
804 Comments
Schizopill Sep 14 @ 11:08am 
when i try to add weapon_smg1 it doesnt work?
ellen61788 May 17 @ 12:55am 
bro fly
EK21 Jan 15 @ 4:17pm 
any way that i / you can make the name of the weapon appear before taking it?
Hoff  [author] Oct 29, 2023 @ 7:56am 
Yeah it works with most weapon addons
Christian goose Oct 27, 2023 @ 10:35am 
I have a question does it work for other mods??
"i can't build!" -george floyd Aug 26, 2023 @ 7:03am 
can you plz jus make it choose by default a random weapon from your entire game except admin guns.
Aliff Jun 19, 2023 @ 9:22pm 
when i spawn the mystery box it always be invisible
zombierun Jun 13, 2023 @ 10:42pm 
i was looking for this thanks man
JJoestar May 8, 2023 @ 11:39am 
Can you make nmoney 2 compatible to spent money and open the box pls
StickMan May 7, 2023 @ 7:38pm 
Can we make a DarkRP based one that costs money to open?
Hoff  [author] May 7, 2023 @ 6:40pm 
The steam workshop should auto update the old one, did you manually extract it separately?
Jpr0ductionz May 7, 2023 @ 5:42pm 
I still have the old version of the box, and I can't find it in my mods to remove it. Really need serious help.
DexterGaming Apr 28, 2023 @ 8:48pm 
COD CALL OF DUTY
Nameless Apr 25, 2023 @ 1:13pm 
I'm trying to add guns to the list and it won't add them. I just get a buzzing sound.
River Rat Apr 25, 2023 @ 7:46am 
There are several SWEPs that run into this issue that I have, they probably have one unifying issue that they are running into, I've ran into the issue with:
007 Golden Gun Swep (https://steamcommunity.com/sharedfiles/filedetails/?id=2689178374)
Dr>Breen's Private Reserve Weaponry (https://steamcommunity.com/sharedfiles/filedetails/?id=2506186936)
Wasteland Weaponry (https://steamcommunity.com/sharedfiles/filedetails/?id=1244116107)

I think there is a few others, but no other mod I use come to mind, hopefully Steam will allow the links, thank you for your time.
Hoff  [author] Apr 24, 2023 @ 1:07pm 
What SWEP is having the issue?
River Rat Apr 24, 2023 @ 11:05am 
Not a big issue, but the box default some SWEPs to CS:S and HL2 models in when previewing in the box, any way to fix this? They spawn normally with the Spawn tool but the box switches the model
UNCLAIMEDYEW Apr 17, 2023 @ 7:45pm 
thanks bro i love this mod so much if i didn't have it i would actually kill myself.
Flakes Gaming Apr 4, 2023 @ 7:52pm 
arc9 support would be sick
Zach Apr 3, 2023 @ 6:50am 
how to add other mod weapons?
FruitBerry Apr 2, 2023 @ 11:28am 
I have found the culprit! The addon is called "Fazbear's Ultimate Pill Pack Remaster" You can simply copy that name and paste it onto the search bar and it should be the first thing that pops up.
Hoff  [author] Apr 2, 2023 @ 8:36am 
Ok awesome, glad to hear that. Let me know if you figure out which one and I’ll try to add a fix
FruitBerry Apr 2, 2023 @ 8:33am 
Ok. I have every addon disabled except this one and it's working fine now. So, it's definitely a conflicting addon. I'm gonna try to find it.
Hoff  [author] Apr 1, 2023 @ 10:01pm 
Without going into more detail I can't help you, you're going to need to provide steps for recreating the issue, what addons you have, etc
FruitBerry Apr 1, 2023 @ 9:53pm 
I do not have any re-uploads of the mystery box.
Hoff  [author] Apr 1, 2023 @ 9:41pm 
Do you have any other mystery box reuploads or anything that could conflict? It uses the hook name "CreateMBoxConvars" which hooks into Initialize, that checks if the convar exists, and if it doesn't it'll create it. Somehow that's not being run, even though it should.
FruitBerry Apr 1, 2023 @ 9:35pm 
Sandbox.
Hoff  [author] Apr 1, 2023 @ 9:33pm 
What gamemode are you running it in?
FruitBerry Apr 1, 2023 @ 9:32pm 
I still get it the error. Not only that, but the console claims that that's an unknown command.
Hoff  [author] Apr 1, 2023 @ 9:26pm 
Try typing: MysteryBox_MaxSpins 0
in the console
FruitBerry Apr 1, 2023 @ 9:24pm 
This is on singleplayer.
FruitBerry Apr 1, 2023 @ 9:24pm 
Yes.
Hoff  [author] Apr 1, 2023 @ 9:22pm 
Also -- is this on a dedicated server, single player, etc?
Hoff  [author] Apr 1, 2023 @ 9:21pm 
Right, if you open the spawn list, under utilities on the right, if you change the "max spins" slider, does it still cause the error when using it?
FruitBerry Apr 1, 2023 @ 9:18pm 
I'm guessing that's something that appears in the console?
Hoff  [author] Apr 1, 2023 @ 9:10pm 
Does the console recognize that the convar "MysteryBox_MaxSpins" exists?
Hoff  [author] Apr 1, 2023 @ 8:22pm 
Yeah, please paste the error
FruitBerry Apr 1, 2023 @ 8:21pm 
When I use it, the box stays open. I waited about 3 minutes and it hasn't closed. Is it supposed to do that? If it helps, I do get some lua errors that I can show you.
Dekko Mar 31, 2023 @ 4:48pm 
Can you make an option to put every weapon installed in the box at once?
qwe Feb 14, 2023 @ 4:04am 
имба
wasabi5578 Feb 5, 2023 @ 11:42am 
Such a well made mod, I have yet to find any flaws.
Hoff  [author] Feb 4, 2023 @ 3:20pm 
Fixed! Changing configs interacts properly on a networked environment now
Crypto Feb 4, 2023 @ 12:52pm 
Does this addon work on linux ubuntu 20.04?
Crypto Feb 4, 2023 @ 12:48pm 
@Hoff Yes it cycles through the weapons.
Hoff  [author] Feb 4, 2023 @ 9:31am 
Does the box cycle through the custom weapons? It seems like it can't find the data/codzombies/mysterybox.txt file
Crypto Feb 4, 2023 @ 2:53am 
My config file looks like this: https://pastebin.com/raw/ig9qhvgt
Crypto Feb 4, 2023 @ 2:50am 
Some reason I'm getting this error:

[ERROR] lua/includes/extensions/string.lua:91: bad argument #1 to 'string_len' (string expected, got nil)
1. string_len - [C]:-1
2. Explode - lua/includes/extensions/string.lua:91
3. DoClick - lua/entities/zombies_mysterybox/cl_init.lua:125
4. unknown - lua/vgui/dlabel.lua:237

When I try to load Weapons File. Also it seems I can't take any weapons from the mystery box, I can only press E the first time to cycle through them, but I can't take the weapon.
Gamer Jan 30, 2023 @ 2:33am 
How the Fuck is this Updated for some time.
Hoff  [author] Jan 26, 2023 @ 10:00pm 
In the addon description there's a part called Config that explains it