Garry's Mod

Garry's Mod

55 ratings
Simple Bank
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
8.593 KB
31 Jan, 2017 @ 2:53am
6 Feb, 2017 @ 12:20am
3 Change Notes ( view )

Subscribe to download
Simple Bank

Description


[github.com]


A simple banking system for role-play servers.

Features:
  • ATM entity to make deposits, withdrawals & transfers.
  • EFTPOS entity that shop owners can configure for remote payment.
  • Bank transfer notifications.
  • Configurable % of cash players should drop on death.
  • Configurable ATM model.
  • Multi-language support (Pirate included by default)

Requirements (Included in DarkRP):


SimpleBank is designed & tested for latest version of DarkRP but includes limited support for several other gamemodes including:
If you would like to integrate SimpleBank with a gamemode not listed above, please contact me.

As this system is primarily designed for DarkRP, it does not have ATM location saving built in (you can use sandbox's "Make Persistent"). If you would like this functionality for your custom gamemode, subscribe to my other addon GMPermaWorld:


Configurable ConVars:
SimpleBank_StartingBalance [number startBalance] // Change how much a players bank account should start with SimpleBank_Model [string modelPath] // Change what the ATM looks like SimpleBank_DropRate [number dropPercentage] // what % of a players money should be dropped on death SimpleBank_ShowText [bool show3D2DText] // Should the ATM have floating text above it

Functions:
SimpleBankAddLanguage([string id], [string phrase], [string language]) // Adds a language string. Example: SimpleBankAddLanguage("cash", "doubloons", "en-PT")

Hooks:
SimpleBankGetMoney ([entity player]) // Return: [number amount] // Add this hook this if using a custom GetMoney function. SimpleBankSetMoney ([entity player], [number total]) // Return: [bool true] // Add this hook this if using a custom SetMoney function. SimpleBankDropMoney ([entity player], [number percentage]) // Return: [bool true] // Add this hook if using a custom DropMoney function. SimpleBankFindOwner ([entity toFind] // Return: [entity player] // Add this hook if your entities use a custom setOwner function.

To add the EFTPOS to the DarkRP entity list please read this[wiki.darkrp.com].

If for some reason you are getting database errors or things are not working as expected, please try running the following console command (SuperAdmin only) to completely reset the database:
SimpleBank_Purge

If you need further support or assistance for any reason, please do not add me as a friend but rather feel free to post a discussion here instead.

Spam and hate comments will be deleted.
10 Comments
DutchDude 19 Sep, 2022 @ 5:40am 
Does it work with Nutscript 1.2?
Louison 17 Apr, 2020 @ 6:36am 
Broken.
Videogames 20 May, 2019 @ 9:00am 
Good imgur copypasta
Mezeke 15 Nov, 2018 @ 2:38am 
works with sandbox mode?
강병지 2 May, 2018 @ 4:34am 
How to reset atm money :steamhappy:
Darckox 25 Apr, 2018 @ 4:34am 
Add to the sandbox gamemode pls >_<
Soma 24 Aug, 2017 @ 4:05pm 
This is awesome, thank you so much for making this! :)
Geemar 31 Jul, 2017 @ 6:36am 
I would like to add this addon to a sandbox server I currently play, is this compatible with the sandbox gamemode?
Zelo 8 Feb, 2017 @ 6:48pm 
does it have a vault?
breh tf 6 Feb, 2017 @ 9:36am 
Very nice