Garry's Mod

Garry's Mod

147 ratings
Sandbox Weapon Shop and Money System
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Entity
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
883.639 KB
26 Nov, 2024 @ 9:12pm
6 Dec, 2024 @ 3:26pm
3 Change Notes ( view )

Subscribe to download
Sandbox Weapon Shop and Money System

Description
WARNING: MODIFIED NPCS LIKELY DO NOT WORK.

NPCs which rely on setting attributes for existing NPCs (case: `npc_rollermine_friendly`, `npc_rollermine_hacked`, and `npc_turret_floor_resistance`) WILL NOT WORK with this addon. GMOD does something weird when spawning these so the addon cannot properly replicate the changes. Until I figure out what GMOD does to make these work, those NPCs will not function with the addon.

Any further comments regarding NPCs not spawning will be deleted; please post details on the Github [listed at the bottom] instead of here. This helps identify what other NPCs are potentially broken.

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

FAQ is here.

Please read the FAQ before posting a comment on this workshop; posts that do not follow this simple request will be removed starting April 2nd, 2025.

Features:
Money System
- You Kill, You earn Money
- Dynamic money value given depending on how much HP an NPC has
- 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 grabbable cash
- Option to replace vanilla Wall chargers and health 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 (Warning from Famous5000: This addon appears to be a little buggy, if it doesn't work on the server then report it to the addon dev)
- 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, or use the console command "wblbuy")
- 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 to, wblack 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 -- Famous5000 recommends; this addon is easy to configure and even allows for scaling battles.
gm_devbattle
Reinforcements System


The original developer (wblack) 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

Go send donations to the original developer of this addon. You can also send me money via the second link if you choose to do so.
https://ko-fi.com/wblack57
https://ko-fi.com/famous5000

Legacy addon page: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3342435610

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
- Inspired by Counter-Life, a half-life 1 mod you should try it!
- Most of this page is unedited from the legacy addon. Tried my best to replicate it.

!!! UNSTABLE BRANCH !!!
Github[github.com] for the addon. Changes on the GitHub will be ahead of this addon until I can confirm everything is stable. If you want a more up-to-date addon use the unstable one, but beware of bugs.
180 Comments
RoShamBo 25 Aug @ 3:31am 
Thank you!
Famous5000  [author] 25 Aug @ 2:59am 
@RoShamBo
Should be possible inside of the configuration menu, right-click the weapon and hit delete. Not entirely certain on categories, but if it isn't automatically deleted on last weapon going missing, pretty sure it's the same deal. Don't remember if it happens automatically or not.
RoShamBo 25 Aug @ 2:57am 
Any way to remove weapons or weapon categories?
Famous5000  [author] 23 Aug @ 5:25pm 
@Nukl3ar
Steam problem. Delete the mod locally, validate files, and then relaunch the game.
Nukl3ar 23 Aug @ 5:23pm 
When I go to options there is nothing under WeShop Admin or Client. It used to work before though.
Famous5000  [author] 16 Aug @ 2:31am 
@The Bird 6053

The armor/health systems depend on what your *max health* is set to via the gamemode or other means. Though in every single addon I've seen with armor stuff, the max has been 255. Take that with a grain of salt though.

If you want an addon which can adjust your max health, consider ULX.
The Bird 6053 15 Aug @ 3:06pm 
Is there a way to make the HP/Armor in the shop be uncapped? (so you can buy more even if you have over 100 HP/Armor) If not then that'll probably be a cool thing to add as an option.
Famous5000  [author] 14 Aug @ 4:56am 
@hl267
The ammo limiter is set to what you set the max ammo you can purchase.

And yes that is a planned feature but with me not doing programming for a while you'll need to either apply a pull request to implement it yourself or wait for someone else to do it, or for me to return to programming work.
hl267 14 Aug @ 2:03am 
It looks like the ammo maximum capacity was limited to the half life 2. Is there anyway we can disable it?
Famous5000  [author] 9 Aug @ 6:26pm 
And yes it does say the addon *will not work* in Sandbox. It won't, but the entities it provides will still be spawnable. Which is enough for the printers I provided.