Garry's Mod

Garry's Mod

Sandbox Weapon Shop and Money System [Legacy Ver.]
158 Comments
Deton 30 Apr @ 5:34am 
i don't get any money by killing, not even with vanilla npc's. neither with dynamic money nor with fixed rewards and yes i checked the “activate money system” box. maybe i just overlooked some step. but i still think this mod is extremely good and would appreciate some help.
Famous5000 29 Jan @ 9:35pm 
This addon is no longer being maintained; however, you should be able to unsubscribe from this one and subscribe to either my BETA or my STANDARD branch.
Vauk 29 Jan @ 10:43am 
[Sandbox Weapon Shop and Money System [Legacy Ver.]] lua/entities/weshop/init.lua:1206: bad argument #1 to 'ipairs' (table expected, got nil)
1. ipairs - [C]:-1
2. RemoveWeaponByClass - lua/entities/weshop/init.lua:1206
3. func - lua/entities/weshop/init.lua:2673
4. unknown - lua/includes/extensions/net.lua:37 (x4)


if u add too much items
Bass-ProShop.ru 14 Jan @ 9:49pm 
Basically create a dupe that contains various necessary survival items.
Health, ammunition, random crate and then the shop itself.

Which I'm not capable to attach to the dupe itself in order to deploy it quickly in various maps because the shop itself doesn't have the property to be weld among other entities and props of the dupe.
Famous5000 11 Jan @ 5:17pm 
I genuinely have no idea. What is it you're trying to do with it? If you can tell me what it is you are trying to achieve with the crate shop I might be able to create a variant which doesn't freeze on placement, wouldn't work with the wall mounted one though.
Bass-ProShop.ru 11 Jan @ 2:55pm 
Is there any way to make the crate shop entity a configurable entity?
I want to create a "portable" shop dupe but there's no way I can add the crate shop into it
cole 16 Dec, 2024 @ 6:36pm 
COAL
Famous5000 25 Nov, 2024 @ 8:31pm 
AS PER REQUEST OF THE AUTHOR, I AM PREPARING AN ADDON MOVE.

Once I get a few good icons, I will be uploading a BETA and STABLE branch, and will have this addon deprecated, but still referenced for credit where it is due.
Famous5000 25 Nov, 2024 @ 5:37pm 
Hmmm... Alright. You have Discord? Hit me up, Famous5000 [or Famous5000#8968]. Can't miss me on that platform. I'll need the original files; I'm going to set you up with a Github Repo.
w.black57  [author] 25 Nov, 2024 @ 5:35pm 
Sure! that'll keep this going XD. To be honest id love to make it open so that other people could update this. I don't really mind if you're willing to upload a new mod in the workshop and its exactly the same as this haha :happyfaye:.
Famous5000 25 Nov, 2024 @ 7:57am 
at least, function properly with updating the clients.
Famous5000 25 Nov, 2024 @ 7:57am 
Yeah I saw the `PDataSet` calls. The thing I wanted to work with is to get it to function properly.

If you'd like I could make some changes, send you the files and then you can update the addon.
w.black57  [author] 25 Nov, 2024 @ 5:18am 
@Famous5000

My coding is clearly a mess haha. Money is actually saved in Pdata "wblmoney" per player. Though saddly im really out of motivation to deal with my mess >.<
Famous5000 25 Nov, 2024 @ 1:37am 
Nevermind the reason why I couldn't edit it was because the lua executors I was running from were running from the client. Strangly this also included the server console via `rcon` but whatever. Would still be nice to have a callable function to notify the player(s) that their money was changed.
Famous5000 25 Nov, 2024 @ 1:10am 
and on top of that could you please add the ability to allow developers to add/remove money from their own addons? I can help with developing that if you need it.
Famous5000 19 Nov, 2024 @ 1:36pm 
*Please* add a way to add custom ammo types to the shop. CW2.0 has 40MM grenades that I want to add to the shop without having an entire crate spawn for it.
saint nutmeg 16 Nov, 2024 @ 2:25pm 
can you mAKE IT WHERE YOU CAN SELL VEHCILES THAT ARE NEXT TO IT BUT THEY MUST BE NEXT TO IT
Vauk 12 Nov, 2024 @ 10:07pm 
@Neosun you can change the lose percentage on death to 100
Neosun 12 Nov, 2024 @ 3:00pm 
Would you be willing to add a death condition that resets your money back to your starting amount? It would be good for one-life gauntlets where you need to keep resetting your money back every time you die as you'd just be picking your guns all over again.
Опорник Лоутаба 8 Nov, 2024 @ 5:27am 
I've been waiting for this for 5, no, 10 thousand years
Spaceman Spiff 2 Nov, 2024 @ 3:28pm 
Could you add an option to be able to pick up ammo dropped by NPCs but not weapons, and vice versa? so you can be able to get ammo from npcs, but only weapons from the shop.
特雷森盗号王-Tokaiteio 2 Nov, 2024 @ 12:18am 
Thanks for your efforts, this is a great mod, there is only one problem, there seems to be no tool to replace the ammo crates in the HL2 campaign with it (I don't want to modify the number of charging stations and medical stations, I think this will affect the gameplay too much), but this is just my problem, not related to this great mod:steamhappy:.
Mark 31 Oct, 2024 @ 3:21pm 
I found out killing things with props gives me money
Lil' X-Treme 30 Oct, 2024 @ 8:24am 
a bit buggy but
Why does deleating a preset makes all other weapons in other presets dissaper?
also when i try to make a preset it shows an error
LenZi 30 Oct, 2024 @ 2:47am 
Oh my bad
w.black57  [author] 29 Oct, 2024 @ 11:45pm 
@LenZi

If you look under the ammo list in Spawnmenu -> Options -> Weshop Admin -> Shop Options
You can right click an ammo in the list then edit -> Change Max Ammo Capacity
LenZi 29 Oct, 2024 @ 10:33pm 
Can u add customizable ammo limits because ar2 ammo is stuck at 60.
Mark 26 Oct, 2024 @ 6:49pm 
are there any mods that make you not earn money?
Bungalo Man 24 Oct, 2024 @ 5:57pm 
soooooo can npcs buy stuff from you OR can the npcs by and sell stuff?
Blackmore 24 Oct, 2024 @ 1:18am 
Hello, w.black57, is there a command for receiving money?
I searched in the files but didn't find it
Hosterle 20 Oct, 2024 @ 12:15pm 
is it possible to somehow prevent the randomness in the cost generator?
munroe92 20 Oct, 2024 @ 11:22am 
Everytime I went to the map the weapon disapper out of nowhere. Please fix it.
Shark_Hunter01 18 Oct, 2024 @ 10:28pm 
nice mod tho, its fun, i use arc9 eft guns and i make a little spot to sell stuff, its fun
Shark_Hunter01 18 Oct, 2024 @ 10:27pm 
i found the problem, i didnt have admin, so the guns wouldnt show up
w.black57  [author] 18 Oct, 2024 @ 8:20pm 
@Shark_Hunter01

Try it again, Hopefully the patch would work. I don't have a PC to test multiplayer right now :sadfaye:
Shark_Hunter01 18 Oct, 2024 @ 1:56am 
does it work with multiplayer?
Shark_Hunter01 18 Oct, 2024 @ 1:53am 
im doing an EFT thing with my friend but i cant see anything in shop
w.black57  [author] 17 Oct, 2024 @ 4:24pm 
@toxicdummy14

Thanks for this, its patched now! :happyfaye:
toxicdummy14 17 Oct, 2024 @ 3:09pm 
[Sandbox Weapon Shop and Money System] lua/autorun/weshop_menu.lua:1869: attempt to index global 'AddWeaponAmmoFrame' (a nil value)
1. DoClick - lua/autorun/weshop_menu.lua:1869
2. unknown - lua/vgui/dlabel.lua:254

this happens whenever i click add entity, if you could fix that'd be great, awesome mod btw ^^
RedCapGreenCap 16 Oct, 2024 @ 12:37pm 
Can you add the ability to set up walls that cost a certain amount of cash to open kinda like in Cod Zombies?
Totally Not Ed 14 Oct, 2024 @ 7:34pm 
can you make different shops sell different items? I wanna make a COD Zombies map.
abeck07 13 Oct, 2024 @ 5:40pm 
please add the ability to organize things, I hate having to add a gun I want to be available earlier in progression and it be at the very end
toxicdummy14 13 Oct, 2024 @ 3:21pm 
@w.black57 i managed to fix it, it was a probably a mix of how many addons i had, and also because i mightve added way to much into the shop
Durp Spycrab 13 Oct, 2024 @ 11:07am 
Sometimes when i load in with a good amount of mods, the WeShop entity doesn't exist anywhere, no matter where i looked. Anyway to fix?
Zadnisa212 13 Oct, 2024 @ 3:31am 
[Sandbox Weapon Shop and Money System] lua/entities/weshop/init.lua:1085: bad argument #1 to 'ipairs' (table expected, got nil)
1. ipairs - [C]:-1
2. FindWeaponByClass - lua/entities/weshop/init.lua:1085
3. HandleWBLBuy - lua/autorun/weshop.lua:1419
4. unknown - lua/autorun/weshop.lua:1474
5. unknown - lua/includes/modules/concommand.lua:54
Zadnisa212 13 Oct, 2024 @ 3:31am 
[Sandbox Weapon Shop and Money System] lua/entities/weshop/init.lua:1085: bad argument #1 to 'ipairs' (table expected, got nil)
1. ipairs - [C]:-1
2. FindWeaponByClass - lua/entities/weshop/init.lua:1085
3. unknown - lua/entities/weshoponwall/init.lua:30
Zadnisa212 13 Oct, 2024 @ 3:31am 
[Sandbox Weapon Shop and Money System] lua/includes/extensions/net.lua:154: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. WriteTable - lua/includes/extensions/net.lua:154
3. func - lua/entities/weshop/init.lua:2723
4. unknown - lua/includes/extensions/net.lua:38
Zadnisa212 13 Oct, 2024 @ 3:30am 
and this
Zadnisa212 13 Oct, 2024 @ 3:29am 
cool mod, but opening shop after saving preset creating this error
lua/entities/weshop/init.lua:1085: bad argument #1 to 'ipairs' (table expected, got nil)
1. ipairs - [C]:-1
2. FindWeaponByClass - lua/entities/weshop/init.lua:1085
3. unknown - lua/entities/weshop/init.lua:2332
ᴇɴᴅ 13 Oct, 2024 @ 2:36am 
Hello, my friend and I think your mod is great, so we want to translate it into Chinese to help more people. I will put your original mod in the description and can I translate your mod? lol :luv: