Example: charge a player and credit a business account
Example: log a fine without moving money
The export does not return a value; it performs the operation (and emits framework notifications where applicable).
Public Events (Safe to Publish)
Security notice
For security reasons, server‑side triggers, parameter shapes, auth tokens and anti‑abuse checks are intentionally omitted from the public docs. If you need additional events or developer access, open a support ticket and we’ll provide vetted guidance for your integration.
Client events (receive‑only)
These events are emitted to clients and do not grant write access. It’s safe to list them publicly.
sleek-bank:client:OpenBank (data)
Opens the banking UI with the current account snapshot.
Payload (high‑level): IBAN, balance, totals, recent transactions, card status, whether the session is ATM/bank, and optional savings/loan summary.
sleek-bank:client:Update (data)
Refreshes the UI with an updated account snapshot.
Payload (high‑level): same structure as above (balance/totals/transactions).
Result notifications (read‑only)
The UI listens for simple result notifications where the payload is 1 (success) or 0 (failure). Listing these is safe; they do not perform actions by themselves.
UpdateMyIban
DepositMoney
WithdrawMoney
TransferMoney
BuyCreditCard
EnterPin
SetPin
RequestLoan
ActivateSavings
SavingsDeposit
SavingsWithdraw
LoanCompleted
These are notifications only. Business logic runs server‑side with validation (proximity, ownership, balances, rate limits, etc.).
Opening the UI from other scripts
For programmatic UI access (e.g., from another resource), we provide an internal, protected integration.
We do not publish the server‑side entrypoint or parameters publicly.
👉 If your resource needs to open the bank UI, open a support ticket with your use case and we’ll share the appropriate, secured approach.
Database
Tables are created by sleek-bank.sql.
sleekbank_accounts
Column
Type
Notes
identifier
varchar(46) PK
ESX license / QB citizenid
iban
varchar(64) UK
Unique IBAN
balance
int unsigned
Bank balance
card_pin
varchar(16)
PIN (optional)
card_activated
tinyint(1)
0/1
sleekbank_transactions
Column
Type
Notes
id
int AI PK
iban_from
varchar(64)
May be "" (system)
iban_to
varchar(64)
May be "" (system)
amount
int unsigned
Positive amounts only
description
varchar(500)
Optional
date
datetime
Defaults to CURRENT_TIMESTAMP
iban_from_post_amount
int unsigned NULL
Balance after tx (source)
iban_to_post_amount
int unsigned NULL
Balance after tx (target)
Indexes on iban_from, iban_to, date and combined (iban_from,date) / (iban_to,date) enable fast history queries.
sleekbank_loans
Tracks loans, installments, next payment time (ms), penalties, and whether requested or approved.
sleekbank_savings
Tracks savings balance, total growth from interest, and next_interest timestamp
local ok = exports["sleek-bank"]:PerformBankTransaction(
true,
"BANK123456789012", -- player
"BANKFLEECABUS001", -- business
2500, -- $2,500
"Vehicle purchase"
)