Garry's Mod

Garry's Mod

452 ratings
Sandbox Weapon Shop and Money System [Legacy Ver.]
8
2
5
4
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Entity
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
884.568 KB
3 Oct, 2024 @ 12:17pm
23 Oct, 2024 @ 12:59pm
45 Change Notes ( view )

Subscribe to download
Sandbox Weapon Shop and Money System [Legacy Ver.]

In 2 collections by w.black57
WeMods
21 items
Sandbox Game-ifyers
5 items
Description
An updated addon is being done by Famous5000 . This will be considered legacy

Link to the updated Mod:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3372649728

Github (made by Famous5000, Thank you!): Weshop [github.com]
************************************************************************

A fun little script to make weapons worth getting by buying through hard earned blood money.

Features:
Money System
- You Kill, You earn Money
- Dynamic money value given depending on how much HP an NPC have
- Works on 99.99% of NPCs (and hopefully most Workshop NPCs)
- Many configurations to adjust money gain (Spawnmenu -> Options -> Weshop Admin -> Money Options)
- Configuration Presets
- Option to split cash between players (Co-op Mode)
- Option to replace vanilla ammo with pickable cash
- Option to replace vanilla Wall chargers to become shops
- Option to disable pickups on vanilla weapons
- If you want to replace other entities with shop/money i suggest using the Total Replacer mod
- As Admins, you can reset all players cash to the start using wblmoney_resetallplayermoney command console
- Option to buy anywhere (If enabled, you can say "!wblbuy in chat")
- and others!

Weapon/Entity Buying System
- Spend your hard earned cash on Weapons, ammunition and entities!
- Add your own weapons/entities or workshop SWEPS in the shop
- Organize weapons/entities in shop by adding them in categories
- Two weapons with the same "SlotID" will make it so only one of the weapons can be bought
- Option to disable pickup for same slot ID weapons
- Add Weapon list Presets and create your own weapon shop list
- Quickly edit ammo and weapons in the list by right clicking to open context menu
- Quick add option uses an algorithm to do the setup for you (about 90% correct setup)
- Use "wblmoney_showsuggestedprice" to see suggested price of your currently held weapon

How to have fun with it:
Make your own weapon list. If you don't want, I actually made a built-in preset for you to try:
Half-life 2 Tiered weapon list preset contains the following addons and must be subscribed to, so you can use it:
RTB:R Weapons Pack
Entropy: Zero 2 SWEPs
Entropy: Zero 2 Xen Grenade
ZBase EZ NPCs Content


After that, just go in game in gmod then open up the Spawnmenu -> Options -> Weshop Admin -> Shop Options
then select Half-life 2 Tiered under Weapon/Ammo List Preset.

Make the Weapon Shop entity under Spawnmenu -> entities -> Weshop

Get some profit by killing your enemies or friends!

Recommended to play with npc battle maps/scripts, here are some suggestion workshop mods to play with it:
Simple Horde Mode for Sandbox
gm_devbattle
Reinforcements System


I also made a guide in making it work in HL2 Campaign, check it out:
Play HL2 Campaign with Weapon Shops

Other useful mods:
Weapon: Setup, Transfer And Restore - Workshop If you get frustrated on losing your weapons (keep inventory)
Weapon Editor & Replacer for balancing/editing weapons
Alternate Model for Weapon Shop by Neeko
Customizable Entity Spawner after adding the shop entity on the list, should spawn around you
Modest Map Manipulator A mod that makes entities (like the weapon shop) to persist in maps

Donation would be appreciated for my work ^_^



Check out my other mods!


Note
- If you are using Manual pickup (i.e. Vmanip manual pickup), this will conflict with my "Disable All Vanilla Weapon Pickup" and "Disable pickup for same slot ID weapons" feature. Simply uncheck them in my option and manual pickup will work
- I'm not gonna be invested too much in this mod, i simply want to share it. I mainly made this so that i can play with it myself so please don't expect too much support on my end :)
- Inspired by Counter-Life, a half-life 1 mod you should try it!
- This is also my first mod :3
- Dont look at my codes its messy >.<
Popular Discussions View All (2)
4
12 Jan @ 3:08pm
PINNED: Share your Presets!
w.black57
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  [author] 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
23x75mmR 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  [author] 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.
23x75mmR 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  [author] 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  [author] 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:.