Skip to content

Bank

Manage in-game bank accounts and transactions.

Permission required: bank

Methods

createAccount(options)

Create a new bank account.

typescript
Bank.createAccount({
    iban: "TR123456789",
    owner: "John Doe",
    balance: 50000,
});

transfer(options)

Transfer money between accounts.

typescript
Bank.transfer({
    from: "TR123456789",
    to: "TR987654321",
    amount: 5000,
});

getBalance(iban)

Get the balance of an account.

typescript
const balance = Bank.getBalance("TR123456789");

getAccount(iban)

Get account information.

typescript
const account = Bank.getAccount("TR123456789");
// { iban, owner, balance }

HotBunny Interactive Entertainment Inc.