wasvendel scripts

wasvendel_bank

Bank system: personal / shared accounts, loan, storage, transfers between banks.

Requirements

  • VORP (or compatible RedM core)
  • oxmysql

Installation

  1. Unzip wasvendel_bank.
  2. Put the wasvendel_bank folder into your server resources directory.
  3. Add the resource to server.cfg after your framework core.
ensure oxmysql
ensure your_core
ensure wasvendel_bank

Database

There is no wasvendel_bank.sql in the resource. The tables (wasvendel_bank, shared, loans) are created automatically on startup (CREATE TABLE IF NOT EXISTS).

Configuration

Edit:

  • config.lua
  • sv_config.lua

Commands

Command Source Usage Description
/setbankmoney Config.AdminCommand.setbankmoney (if enablecommand) /setbankmoney [targetId] [bank] [amount] Set a player's bank balance

The charid is resolved from the target player by the code — you do not need a separate charid argument.

Exports

Server

Export Signature Description
SetBankMoney (source, bank, amount) Set balance
GetBankMoney (source, bank) -> number Get balance
IsBankMoneyEnough (source, bank, amount) -> boolean Whether there is enough money
RemoveMoneyInBank (source, bank, amount) Remove
AddMoneyInBank (source, bank, amount) Add
local balance = exports['wasvendel_bank']:GetBankMoney(src, 'valentine')
exports['wasvendel_bank']:AddMoneyInBank(src, 'valentine', 100)

New documentation page

The file is saved to the markdown/ folder. Editing is localhost-only.