Garry's Mod

Garry's Mod

Not enough ratings
[E2] CurrencyCore
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
File Size
Posted
Updated
3.030 KB
27 Jan, 2018 @ 9:57pm
9 Feb, 2018 @ 12:57am
13 Change Notes ( view )

Subscribe to download
[E2] CurrencyCore

Description
A super simple currency addon for E2, indended for sandbox fun not for anything serious


functions:
getBalance()
pay(ply)
getPayAmount() - returns your periodic amount
getPayInterval() - returns periodic interval
runOnPay(enable) - makes the chip run when your balance changes
paidClk()
paidAmount()
payingPlayer() - whoever paid you (if anyone)
dropCurrency(amount) - just deletes some if your balance - returns 0 if error but clamps to your max anyway
ply:SetBalance(amount) (admin only by default)
ply:GetBalance() (admin only by default)
payMessage() - returns the message in the most recent payment, useful for purchases

console commands:
currencycore_payinterval, default 60 seconds
currencycore_maxamount
currencycore_setbalance - 0 for disabled, 1 for admin only, 2 for everyone
currencycore_getbalance - 0 for disabled, 1 for admin only, 2 for everyone
currencycore_reset - resets all balances
currencycore_paycommand - default is "!pay"

chat command:
!pay <name> <amount> <optional message> -- this is only needed because it couldn't be securely/easily done otherwise
12 Comments
Scraplord7 8 Jun @ 4:41pm 
how come i have this downloaded but it won't show any of the actual mod in the game?
Im_Skeleton 31 May, 2023 @ 5:26pm 
I may be stupid for asking this but what are the functions for
Daeva 18 Jan, 2020 @ 11:52am 
can I trade this for bitcons?
Armystuntman 1 Oct, 2019 @ 7:39am 
idk what the jokes are about, but anyway
tested this and everything works (currencycore_reset doesn't seem to work but it might just be a quirk, but it's not required)
Thanks for making this, I enjoy this pseudo-roleplay sandbox kind of thing.
Bjard 1 Oct, 2019 @ 1:33am 
yeah but how do I buy ranks lmoah :joy3:
Antonym  [author] 1 Oct, 2019 @ 12:15am 
currencycore_pay_standard (default 20), yep amounts are saved permanently
Armystuntman 30 Sep, 2019 @ 12:30pm 
Is there a way to disable or edit the amount of payday money you get periodically?
Also, does the pay amount save when you relog?
JD "Jizzy Dawg" Vance 15 Mar, 2018 @ 4:56pm 
wont work for me
brad 27 Jan, 2018 @ 11:02pm 
:star_of_david:
Antonym  [author] 27 Jan, 2018 @ 10:30pm 
:menorah: