Garry's Mod

Garry's Mod

933 ratings
Moneypot
   
Award
Favorite
Favorited
Unfavorite
Type: Tool, Addon
Tags: Roleplay, Build
File Size
Posted
Updated
0.013 MB
Nov 24, 2012 @ 5:22am
Apr 16 @ 12:39pm
13 Change Notes ( view )

Subscribe to download
Moneypot

Description
This is the (moderately) popular multi-use Money Pot addon I made for DarkRP. (Compatible with 2.4 and 2.5)
It is an entity that will store any money that touches it, with the ability to eject it all as one single money entity when 'use'd.
------------------
Github Repo[github.com]
------------------
On it's own, this provides a handy one-way transfer method for money in shops: Most of the moneypot it placed on the public side and the ejection end is placed on the shop owner's side. The customer places their money in the pot and the shop owner confirms it is the right amount and then ejects it.
However, with Wire, this becomes a particularly useful entity.
It has outputs that
A) Show how much money is inside it
b) Show how much money was just put inside it (or removed) and
c) Trigger every time money is put in or taken out.
It also has inputs that allow you to either empty the entire thing or more importantly output a portion of the total money stored inside.
This means it is very useful for automatic gun shops, both in knowing how much money the customer has put in and being able to make exact change if the customer puts too much money in (which is impossible otherwise!)

There is a full Lua interface in case you want to integrate it with your custom DarkRP server (maybe make money printers print directly into the nearest moneypot?) and even supports customising the money entity supported in case you use a different system to Public DarkRP (or even a different gamemode!)
Popular Discussions View All (2)
7
Apr 30, 2019 @ 10:12am
Servers with this addon?
PIHKAL
3
Nov 16, 2018 @ 6:05am
Online Servers with this addon?
The Tardis
< >
157 Comments
Nub Jun 4 @ 11:16am 
My host uses linux. I didn't know it was only an issue on linux though
Merlin Jun 4 @ 9:56am 
That's only true for users using the Linux operating system.
Nub Jun 4 @ 9:54am 
I found the problem. I extracted the GMA and discovered that the file "Moneypot" starts with a capital. GMod is strict about file names (at least on my host), all files need to be lowercase (it's even said on the gmod wiki, I think. I could be wrong). I made the file lowercase and put it in the addons folder, and now it appears on the server.
Lexi  [author] Jun 3 @ 11:23am 
I'm sorry, I have no idea. I guess you could try moving those addons into a different folder to see what happens, then add them one by one until you see which one breaks.
Nub Jun 2 @ 6:37pm 
I have restarted the server and checked for errors. I didn't see any but it does move quickly, so I tried on an SRCDS server. The SRCDS server worked and it installed correctly (with +host_workshop_collection <id> , so it must be a conflict with mods I have uploaded in /garrysmod/addons/ . Here's a link to that: https://prnt.sc/sspcqk
Lexi  [author] Jun 2 @ 10:20am 
Are there any errors?
Are you sure the server's subscribed to it correctly?
Nub Jun 1 @ 11:04pm 
Doesn't work? I have it installed on my server, but it doesn't appear anywhere. It's not in entities, wire, tools, or anywhere else on the spawnlist. I have a search mod enabled, and searching for it in all areas comes up with nothing.
Lexi  [author] Apr 26 @ 3:28am 
You can add a check to see if the changed amount is greater than 0
Ramirez Apr 25 @ 9:38pm 
Is there a way to detect only when money is put in?
Lexi  [author] Apr 21 @ 12:50am 
Hi @Proto, the source code is online here: https://github.com/Lexicality/Lexical-Tools