Skip to content

np_banking v0.1.0 ​

Banking for roleplay with the GTA lore banks: Maze Bank, Fleeca, Pacific Standard, Blaine County Savings, Lombank and Union Depository. Every money movement is a row in a ledger, bank cards are inventory items with a PIN, the np_phone Bank app does mobile banking, every ATM prop in the map is usable through its own screen, branches have a counter with safe deposit boxes, savings, loans and cheques, and banks and ATMs can be robbed.

It uses the Nimbus UI look of np_hud, np_phone and np_payments: grey glass, glossy squircle tiles, and colour only where it means something. A specific bank shows its own logo and brand colour; the generic bank tile is blue. It is built for es_extended with np_inventory first, and also runs on qbx_core, qb-core or standalone, with ox_inventory, qb-inventory or no inventory. It needs oxmysql, np_prophandler (ATM props) and np_npchandler (branch tellers), both 1.1.0+. No ox_lib.

Status

np_banking is feature-complete, but not yet tested on a live server. Core, phone app, ATMs, branches and robberies are covered by the plain-Lua test suites (ESX + np_inventory first, Qbox / qb-core, ox / qb inventories, standalone) and the web tests. The ATM screen offsets still need tuning in game: see ATMs → Tuning the screen.

ATM screens

Bank app: accounts Card used far away Transfer Savings & credit
Accounts Card alert Transfer Savings
Branch: safe deposit box Branch: loans
Deposit box Loans
Heist HUD Robbery minigames
Heist HUD Hack, thermite and sync hack

The screenshots come from the browser mock (see Development). The UI ships in English and German.

The lore banks ​

Bank Prefix Role Branches
Maze Bank LS Default bank of every checking account, most ATMs, mortgages Maze Bank Tower, Pillbox Hill
Fleeca FL Street branches: counter, safe deposit boxes, savings depots Legion Square, Hawick Ave, Burton, Rockford Hills, Great Ocean Hwy, Route 68
Pacific Standard PS Private banking, Black card Vinewood Blvd
Blaine County Savings BC Rural savings bank with the best rates Paleto Bay
Lombank LB Business and society accounts, company cards, payroll Lombank West, Del Perro
Union Depository UD No retail: bullion desk (gold) and faction accounts Pillbox Hill

Account numbers carry the bank's prefix (LS-48 1192). Labels, colours, fees, interest, card tiers and branch blips are in Config.Banks. The logos are redrawn after the in-game ones; the bank names and logos are Rockstar Games trademarks.

At a glance ​

  • The checking account is the framework bank. Every character gets a checking account (Maze Bank by default) whose balance is the ESX / qbx / qb bank money, so np_hud's money chip and every other script keep working. Bank changes made by other scripts land in the statement as external rows. See Accounts & ledger.
  • Accounts as a ledger: personal, savings, shared (members with roles and daily limits), business, society, faction and government accounts. Transfers between banks arrive after a delay, or instantly for a fee. Standing orders, savings interest, a credit score and fraud rules. See Accounts & ledger.
  • Bank cards as items with salted PIN hashes, tiers with daily and contactless limits, freeze, block and expiry. See Bank cards & PINs.
  • Bank app in np_phone: accounts with a 7-day line, transactions, monthly statements, transfers to phone or account numbers, pay-me QR codes, payment requests with a Pay button, cards, shared accounts, standing orders, savings and a business mode for bosses. See Bank app.
  • Interactive ATMs: the camera moves to the screen of the real prop, an 800×600 screen is drawn on it and clicked with a 3D cursor. Card + PIN or phone, withdraw, deposit, transfer, statement, change PIN, receipts, per-ATM cash. See ATMs.
  • Branches: ticket queue with an NPC teller or a player teller on duty, accounts, safe deposit boxes, savings depots, loans, cards, cashier's cheques, gold bullion, large-cash notices and business payroll. See Branches.
  • Robberies: Fleeca drawers and vaults, Pacific Standard, the Paleto Score, Union Depository, and ATM jobs (skimmer, jackpotting, rip-out, explosives). Server-verified minigames, alarms through np_mdt, marked money with dye packs, evidence events. See Robberies.
  • np_payments provider: np_payments lists np_banking's accounts and cards in its checkout and charges through its ledger. See Bridges → np_payments.
  • Staff tools (np_admin): permission nodes instead of ACE, live settings, give / take bank money, freeze, audit, ATM and robbery tools. See Staff tools.

Works with ​

All optional and detected at start. Each has a fallback, and the start log prints one line per sibling. np_prophandler and np_npchandler are required, not listed here.

Resource What np_banking does with it
np_inventory Items registered at runtime, safe deposit boxes as stashes
np_hud Toasts, interaction prompts and progress bars
np_phone The Bank app, notifications, Live Activities, mails; phone bank money goes through the ledger
np_payments np_banking is its banking provider: accounts, cards, PINs, limits
np_identification ID checks at the counter and for safe deposit boxes
MDT (np_mdt) Bank and ATM alarms as dispatch calls
np_admin Permission nodes, live settings, staff actions and logs
np_discord Staff by Discord role while np_admin is not running

Quick example ​

lua
-- server: pay a salary bonus into a player's checking account (online or offline)
exports.np_banking:CreditCitizen(identifier, 500, 'Bonus · Burger Shot')

-- server: charge a fine to the checking account, even while it is frozen
local acc = exports.np_banking:GetPersonalAccount(source)
local ok, res = exports.np_banking:AddTransaction(acc.id, -850, { reason = 'Speeding fine', merchant = 'LSPD', ignoreFrozen = true })
if not ok then print('fine failed: ' .. res) end    -- 'funds', 'not_found', ...

-- server: log every big movement
AddEventHandler('np_banking:server:transaction', function(tx)
  if math.abs(tx.amount) >= 100000 then print(('%s %s %d'):format(tx.ref, tx.account, tx.amount)) end
end)

Next steps ​