wasvendel_bank
wasvendel scripts
wasvendel_bank
wasvendel scripts
wasvendel_bank.wasvendel_bank folder into your server's resources directory.wasvendel_bank.sql into your database.server.cfg after your framework core.Import wasvendel_bank.sql into your database before starting the resource for the first time.
Edit config.lua to configure bank locations, fees, loans, and permissions.
Server-only secrets should be configured in sv_config.lua.
| Setting | Description |
|---|---|
Config.AdminCommand.setbankmoney | Admin command used to set a player's bank balance. |
Config.Permission | Groups allowed to use admin commands. |
| Command | Usage | Description |
|---|---|---|
/setbankmoney | /setbankmoney [id] [charid] [amount] [bank] | Sets a player's bank balance. |
Admin command access is controlled by Config.Permission in config.lua.
Example groups: admin, superadmin, moderator.
All server exports listed below are safe to call from other resources.
| Export | Signature | Description |
|---|---|---|
SetBankMoney | (source, bank, amount) | Sets a player's bank balance. |
GetBankMoney | (source, bank) -> number | Gets a player's bank balance. |
IsBankMoneyEnough | (source, bank, amount) -> boolean | Checks whether the player has enough money in the selected bank. |
RemoveMoneyInBank | (source, bank, amount) | Removes money from the selected bank. |
AddMoneyInBank | (source, bank, amount) | Adds money to the selected bank. |
| Parameter | Description |
|---|---|
source | Player server ID. |
bank | Bank key defined in the config. |
amount | Money amount. |
| Event | Payload | Description |
|---|---|---|
wasvendel_bank:openbank | bankName, bank, mymoney, money, storage, slot, combinedData, loanDebt | Opens the personal bank UI. |
wasvendel_bank:updatebank | bankValue, money | Updates the bank balance in the UI. |
wasvendel_bank:opensharedbank | sharedAccounts, walletMoney | Opens the shared bank UI. |
wasvendel_bank:updatesharedbank | money | Updates the shared bank balance. |
wasvendel_bank:closebank | None | Closes the bank UI. |
wasvendel_bank:buybank | bankName, bank, cost | Opens the bank account purchase prompt. |
wasvendel_bank:loanUpdated | debt | Updates the loan debt. |
wasvendel_bank:loanResult | action, success, debt | Sends the loan action result. |
wasvendel_bank:updateWalletMoney | money | Updates the wallet display. |
wasvendel_bank:receiveSharedMembers | members, bankName | Sends the shared bank member list. |
| Event | Description |
|---|---|
wasvendel_bank:data | Requests bank data. |
wasvendel_bank:setdata | Handles deposit and withdraw actions. |
wasvendel_bank:getdata | Gets transaction data. |
wasvendel_bank:transportbanktobank | Transfers money between banks. |
wasvendel_bank:createGroup | Creates a shared bank group. |
wasvendel_bank:sharedtransaction | Handles shared bank transactions. |
wasvendel_bank:takeLoan | Takes a loan. |
wasvendel_bank:repayLoan | Repays a loan. |
wasvendel_bank:openstorage | Opens bank storage. |
wasvendel_bank:buyAccount | Purchases a bank account. |