Garry's Mod

Garry's Mod

85 ratings
Money and Value System | Sandbox
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
67.357 KB
13 Jul, 2020 @ 8:45am
7 Jan, 2022 @ 10:30am
16 Change Notes ( view )

Subscribe to download
Money and Value System | Sandbox

Description
About
The Generic Money and Value System is a lightweight addon that should be compatible with most addons out there. Its purpose is to add value to all items in the game, including a money system to make you able to buy them and manage your money.

Its easy on the network and client performance and does not rely on any other addons to run.

I mainly created this addon to get familiar with GLUA and create something to enhance the way me and my friends like to play sandbox.

If you are afraid of backdoors or just want to report issues please refer to my github:
https://github.com/OneStep150/gmod_generic_currency_value

Requirements
The only requirement to run this mod properly is to have Counter Strike: Source installed.
If the demand is high enough I will consider to remove this dependency.

Features
Here are some of the features you can expect from this addon:
  • Apply a default value to all spawnables
  • Add a value multiplier based on weight/health
  • Set a specific value based on the spawnable itself
  • Make NPCs drop money on death, based on HP or a configurable value
  • Drop money on playerdeath for others to steal
  • A number of CVARs to customize the system with
  • Multiple chat commands for admins to add/remove/spawn money
  • Drop your money to hide it from your friends
  • Save your money via an ATM and transfer it safely to your friends!
  • Lightweight toggable HUD to display your current balance
  • Performance improvement - set a limit to the dynamicially spawned money entities
  • First step towards jobs/tasks/objectives, spawn a randomzied package to retrieve
  • NEW! You can now enable autopickup for money rewards from killing npcs
  • NEW! The notifications can now be configured to your liking, or just be disabled
How to Use
The addon starts out disabled first,
you will have to activate it first by opening the menu and ticking the corresponding checkbox.

You can open the menu by typing gcv_menu in the console.

The menu only offers basic configuration, for more detailed configuration you will have to use the console.

By default, if the addon is enabled, every item in the game will have a value.
If you cant afford it the item wont spawn.
Health and weight multipliers only affect items, that dont have a specific value configured.
You can configure specific values in the menu.

The ATM can be spawned under the entities tab - look for the "Currency and Value | Entities" category.
The first iteration of objectives can also be found under the same tab, they are currently being handled as entites.

Chat Commands
Here is the list of available chat commands, that every user can do:
  • !currency (Displays your current balance)
  • !drop <amount> (Drops the specified amount of money where the player is looking at)
Admin Chat Commands
Following a list of chat commands reserved for admins only
  • !summon <amount> (Summons specified amount of money where the player is looking at)
  • !add <playername> <amount> (Adds the specified amount of money to the player)
  • !remove <playername> <amount> (Removes the specified amount of money from the player)
  • !set <playername> <amount> (Sets the money to the specified amount of the player)
Console Commands
Menu
Opens the menu gcv_menu Global CVars Enables the value system gcv_value_enabled <0/1> Enables the reward system (NPCs dropping money) gcv_reward_enabled <0/1> Enables autopickup for rewards gcv_reward_autopickup_enabled <0/1> Enable money drop on death gcv_drop_ondeath_enabled <0/1> Ignore value system for admins gcv_value_ignore_admin <0/1> Set a limit to the currency objects that can be active at once gcv_currency_maxentities <number> HUD CVars Enable the lightweight currency HUD at the top right corner gcv_hud_enabled <0/1> Only show HUD when opening the context menu (pressing C) gcv_hud_draw_on_contextmenu <0/1> Enable notifications gcv_notification_enabled <0/1> Enabled notification sound gcv_notification_sound_enabled <0/1> Show the objective at all times via a halo and a text gcv_objective_drawpos <0/1> Prop CVars How much a prop that has not been configured should cost gcv_value_prop_default[ <number>/code] How much to multiply that default cost based on weight gcv_value_prop_weight_mul <number> Ragdoll CVars How much a ragdoll that has not been configured should cost gcv_value_ragdoll_default <number> How much to multiply that default cost based on weight gcv_value_ragdoll_weight_mul Entity/Sents CVars How much a entity that has not been configured should cost gcv_value_entity_default <number> How much to multiply that default cost based on weight gcv_value_entity_weight_mul <number> Vehicle CVars How much a vehicle that has not been configured should cost gcv_value_vehicle_default <number> How much to multiply that default cost based on weight gcv_value_vehicle_weight_mul <number> NPC CVars How much a npc that has not been configured should cost or drop as a reward gcv_value_npc_default <number> How much to multiply that default cost/reward based on health gcv_value_npc_health_mul <number> Weapon/Swep CVars How much a weapon that has not been configured should cost gcv_value_swep_default <number> Tool CVars How much a tool that has not been configured should cost gcv_value_tool_default <number>

Known Issues
  • Format of money is not consistent (i.e sometimes 1.00 instead of 1)
  • Tool tab doesnt display custom tools all the time
58 Comments
Badger Monkey 8 Mar @ 3:49pm 
what mods do i need for the money models to work?
Kippur 23 Jan @ 5:27pm 
im trying to figure out how to make individual weapons a different price, the pistol costing just as much as rpg makes no sense.
Jack's Bot 5000 11 May, 2024 @ 8:27pm 
when I use the "gcv_notification_sound_enabled" command it says prints "Unknown command "gcv_notification_sound_enabled"
Jack's Bot 5000 6 May, 2024 @ 1:39am 
I would like for the CS:S dependency to be removed.
芙兰朵露·斯卡蕾特 20 May, 2023 @ 2:57am 
This is a good mod that greatly improves my gameplay
LenZi 5 Dec, 2022 @ 5:02pm 
Can u sell items? If not that would be a cool feature
cumpuddle228 26 Oct, 2022 @ 9:24pm 
could you make a money printer?????
Oabobaro 28 Sep, 2022 @ 6:56pm 
this is the mod i wish for the gods, thank you so much!
GaussHogXR7 23 Oct, 2021 @ 4:36am 
I LOVE this addon! But, I wish we could see how much stuff costs in the spawn menu? Is there any hope for this in the future?
AMatrix 19 Sep, 2021 @ 2:24am 
Please remove the CS:S dependency. I can't find a money mod without it.