All products

np_banking

Banking with the GTA lore banks. Every account is a ledger, the checking account is the framework bank, and cards are inventory items with a PIN. Players bank in an np_phone app, at ATMs they click on and at branch counters, and crews rob the vaults.

v0.1.0ESX · qbx · qb · standaloneRequires oxmysqlRequires np_npchandler 1.1.0+ · np_prophandler 1.1.0+
Price TBAStore link follows at release
Installation guideDocumentation
Version
0.1.0
Status
Feature-complete, not yet tested on a live server
Frameworks
ESX first, qbx, qb, standalone
Dependencies
oxmysql, np_npchandler 1.1.0+, np_prophandler 1.1.0+
Inventory
np_inventory first, ox_inventory, qb-inventory or none
Database
Tables created on start
Optional
np_payments, np_phone, np_hud, np_identification, np_mdt, np_admin, np_discord
Languages
English, German
Build
Node to build the NUI once
np_phone Bank app: accounts at four banks with the total and a 7-day line, sending $3,400 to Benny's Motorworks at Lombank, and the cards tab with a "used far away" alert and a Freeze button
np_phone Bank app: accounts at four banks with the total and a 7-day line, sending $3,400 to Benny's Motorworks at Lombank, and the cards tab with a "used far away" alert and a Freeze button

Taken from the NUI in the browser with mock data. The bank brands are a design render.

Six lore banks

Each bank has its own logo, colours, account number prefix, fees, savings rate, card tiers and branches on the map. A tile in its colours marks its accounts in the app, on cards and in toasts.

Redrawn after the in-game logos. The bank names and logos are trademarks of Rockstar Games.

What's in it

Every amount, account and role is checked on the server. The client asks, the server books.

Accounts as a ledger

  • Every money movement is a statement row with a reference.
  • The checking account is the framework bank: other scripts keep working, and their changes show up as external rows.
  • Personal, savings, shared, business, society, faction and government accounts.

Cards as items

  • A bank_card item per card with a salted PIN hash, daily and contactless limits and an expiry.
  • Freeze, report stolen, change the PIN. Three wrong PINs block the card.

np_phone Bank app

  • Accounts, transfers to phone or account numbers, QR codes and payment requests.
  • Cards, shared accounts, standing orders, statements, savings and a business mode for bosses.

Interactive ATMs

  • The camera moves to the screen and you click it. Card and PIN, or the phone.
  • Cash stock per ATM, foreign-bank fees, receipts. Bystanders see the screen, never the PIN.

Branches

  • Take a ticket. An NPC teller or a player teller on duty serves you.
  • Safe deposit boxes, savings depots, loans, cards, cashier's cheques, gold and large cash.

Robberies

  • Fleeca drawers and vaults, Pacific Standard, Blaine County Savings and a Union Depository gold run.
  • ATM skimmers, jackpotting, rip-outs with a tow rope and explosives. A ripped-out ATM stays where it was dragged, even after a restart.
  • Minigames whose answers the server checks.

np_payments provider

  • The checkout lists every np_banking account the player may use, with cards, PINs and limits.
  • Phone payments in np_phone are ledger rows too.

Staff and safety

  • Fraud rules flag too many or too large payments in a short time, and can freeze the account. A credit score drives loans.
  • Staff give and take money, freeze accounts and read the audit log through np_admin.
  • Rate-limited RPCs with schemas, and one log of every staff action.

A closer look

Accounts and the ledger

Money is whole dollars, like ESX. Every booking writes a row with the balance after it, and every account belongs to one of the six banks.

AccountWhat it is
CheckingOne per character, at Maze Bank by default. Its balance is the ESX, qbx or qb bank money, so np_hud's money chip and every other script keep working
PersonalMore everyday accounts, at any bank
SavingsInterest every day at the bank's rate, Blaine County pays the most
SharedSeveral members with the roles owner, spend and view and a daily limit each. Invites by phone number
Business, society, factionJob accounts with a boss role, employee limits and company cards. ESX societies can be copied over once
GovernmentThe City of Los Santos account for fines and taxes
  • External rows: when a paycheck, a shop or an admin menu changes the framework bank, the statement shows it.
  • Between banks a transfer arrives after an hour, or right away for the bank's instant fee.
  • Standing orders run on their own, with a Live Activity on the phone before they do.
  • Credit score from 300 to 850. Paid instalments raise it, missed ones and fraud flags lower it.

np_phone Bank app

With np_phone running, np_banking adds a Bank app. /bank opens the phone straight into it.

Bank app: savings with the credit score and deposits, a shared flat account with roles, and the business mode with employees and company cards
  • Accounts: the total with a 7-day line, transactions with filters and search, monthly statements you can mail.
  • Payments: send to a phone or account number, pay-me QR codes, requests with a Pay button by mail, push and chat.
  • Cards: freeze, report stolen, PIN, limits and contactless. "Used far away" puts a Freeze button in the Dynamic Island.
  • Business mode for bosses: employee limits and company cards. Streamer mode hides amounts.
  • Pushes for paychecks, payments, low balance and declined payments.

ATMs you click on

Every ATM prop is usable. Press E: the camera moves to the screen, the UI is drawn on it and you click it with a cursor in the world.

Twelve ATM screens from inserting the card to the receipt, plus out of cash, out of order and hacked
  • Card and PIN, or tap the phone. Withdraw, deposit, transfer, statement and change PIN, with receipts as items.
  • Cash stock per ATM, restocked over time or by a cash-in-transit job through RestockAtm. Other banks' cards pay a fee.
  • Bystanders see the screen, never the PIN. The card is kept after three wrong PINs or when you walk away without it.
  • Out of order and out of cash states. Staff restock, repair or break an ATM.

Branch counters

Take a ticket at the counter. An NPC teller serves you, or a player teller on duty who also approves big loans. Many services need an ID through np_identification, and money only moves after you hold a button to sign.

ServiceWhat it does
AccountsOpen, rename and close accounts, add co-owners
Safe deposit boxesA stash per box in S, M or L with keys, co-holders and weekly rent. Police open them with a warrant
Savings depotsFlex, fixed term and the LS index fund
LoansPersonal, car and mortgage loans with instalments. Missed ones lower the credit score, defaults fire an event for repossession
CardsOrder, replace, upgrade, reset the PIN, and pick up a card an ATM kept
Cheques and goldCashier's cheques as items, gold bars to buy and sell
Large cashOver $10,000 at the counter needs a notice 24 hours ahead
BusinessJob accounts, statements and payroll for bosses
Safe deposit box B-207 with its items, key holders, recent openings and rent

Robberies

Every step starts and ends on the server: positions, items, police on duty, cooldowns and minigame answers. The client never reports success.

Terminal hack, thermite and the two-player sync hack. The server builds every puzzle from a seed and checks the answer
  • Silent or loud alarms through np_mdt. A player teller can hold the silent alarm for an inside job.
  • Marked money with dye packs, and a GPS tracker hidden in the loot bag.
  • Fingerprint, CCTV, dye and skimmer evidence events for your MDT or evidence script.
  • Cooldowns per heist and per type that survive a restart. Staff reset them or end a robbery in np_admin.
JobHow it goesPolice
Fleeca drawersA hold-up at the counter of any Fleeca, 1 to 4 robbers2
Fleeca vaultThermite on the back door, hack the keypad, drill the boxes4
Pacific StandardCrew of 4 to 6: cut the power, thermite, a two-player sync hack or the manager's keycard, drill or wait for the time-lock, trolleys and gold8
Blaine County SavingsThermite, hack the panel, drill the boxes, trolleys6
Union DepositoryThe gold run. Off by default: point it at your MLO first10
ATM jobsSkimmers that clone cards, jackpotting on the ATM's own screen, ripping it out with a tow rope (a networked np_prophandler prop that stays where it was dragged and survives a restart), or C40–2

Cards

A card is a bank_card item linked to one account. Use it at an ATM, pay with it in np_payments, lose it, get it stolen.

TierDaily limitContactless up toNeeds
Debit$5,000$100–
Gold$15,000$150$50,000 balance
Black$50,000$250$500,000 balance
Business$20,000$150A job account
Prepaid$2,000$100Nothing, anonymous
  • 4-digit PIN stored as a salted hash, with an optional server pepper. Three wrong tries block the card.
  • Cards expire after 56 real days, which brings players back to a branch.
  • Cloned cards from a skimmer work three times with a lower limit.

Limits, tiers, fees and the expiry are all in shared/config/cards.lua.

Set it up

Compatibility

The framework and inventory are detected at start ('auto'). np_npchandler and np_prophandler, both 1.1.0 or newer, are required. Every other resource is optional, has a fallback, and the start log prints one line per sibling.

KindSupported
FrameworkESX Legacy (es_extended) first, Qbox (qbx_core) and qb-core, or standalone (license identifiers, np_banking keeps its own balances, no cash)
Inventorynp_inventory first, items registered on their own. ox_inventory and qb-inventory with the items added to their lists. Or none: cards without items
CheckingThe framework's bank money, read and written through the framework
Marked moneyESX black_money (np_inventory's black_money item). No new money items
Permissionsnp_admin permission nodes. Without it: the console, identifiers in a convar, ESX admin groups and Discord roles. No ACE
SiblingWhat it adds
np_paymentsnp_banking is its banking provider: accounts, cards, PINs and limits in the checkout
np_phoneThe Bank app and notifications. Phone payments go through the ledger
np_inventoryCards, receipts, cheques and robbery tools as items, deposit boxes as stashes
np_hudToasts, key prompts and progress bars
np_identificationID checks at the counter
np_adminPermissions, live settings, logs and staff tools
np_mdtBank alarms for the police
np_discordStaff roles from Discord
np_minigamesRobbery minigames, checked on the server

Installation

The tables are created on start. You build the NUI once and start np_banking before np_payments.

  1. Put the resource in resources/ as np_banking.
  2. Build the NUI once (the built web/dist is not in the repository):
    cd np_banking/web && npm install && npm run build
  3. Database: nothing to do. sql/install.sql holds the same statements if you prefer to import them.
  4. On ox_inventory or qb-inventory, add the items from the README to their item lists. np_inventory registers them on its own.
  5. Start it after your framework and inventory and before np_payments, which picks np_banking as its banking provider when it starts. np_phone can start in any order.
    ensure oxmysql
    ensure es_extended        # or qbx_core / qb-core
    ensure np_inventory       # or ox_inventory / qb-inventory
    ensure np_hud
    ensure np_npchandler      # required, 1.1.0+
    ensure np_prophandler     # required, 1.1.0+
    ensure np_banking
    ensure np_payments
    ensure np_phone
  6. Optional: a secret pepper for PIN hashes. Never change it afterwards, or every PIN stops matching.
    set np_banking_pin_pepper "some-long-random-string"
  7. Tune the ATM screens in game: with Config.Debug on, /atmdebug draws the screen corners for Config.Atm.models.

For your own scripts

Server exports for accounts, transfers, bookings, cards, ATMs and the branch, and server events for every ledger row, frozen account, blocked card, fraud flag, loan default and piece of robbery evidence.

-- pay a job's wage into the character's checking account
local acc = exports.np_banking:GetPersonalAccount(source)
exports.np_banking:AddTransaction(acc.id, 640, { reason = 'Paycheck · Burger Shot' })

-- move money between two accounts (by id or account number)
local ok, res = exports.np_banking:Transfer(acc.id, 'LB-21 0457', 3400,
  { actor = source, reason = 'Sultan RS · engine + turbo' })
-- res.pending = true between banks until the transfer is released

-- a cash-in-transit job refills an ATM
exports.np_banking:RestockAtm(atmId, 5000)

AddEventHandler('np_banking:server:transaction', function(tx)
  -- every ledger row, external ones included
end)

Amounts are positive whole dollars. Fractions are refused, never rounded. Exports answer nil, false or {} until np_banking:server:ready fired.

Questions

Has it run on a live server?

Not yet. np_banking is feature-complete and covered by Lua test suites for ESX with np_inventory, Qbox and qb-core, ox and qb inventories and standalone, plus the web tests. Testing on a live server is the next step, so expect fixes in the first versions.

Does it replace my framework's bank money?

No. The checking account is the framework bank: its balance is the ESX, qbx or qb bank money. Paychecks, shops and admin menus keep working, and np_banking writes their changes into the statement. Savings, shared and job accounts are np_banking's own.

Do the ATMs fit every ATM model?

The ATM models are listed in Config.Atm.models with the screen's four corners as offsets. Check them in game with Config.Debug and /atmdebug, and tune them if the screen sits off on your map.

Do I need np_payments?

No. With np_payments, np_banking is its banking provider, so the checkout shows savings, shared and job accounts, cards and PINs. Start np_banking before np_payments.

Does it use ACE permissions?

No. Staff rights are np_admin permission nodes such as np_banking.money and np_banking.freeze. Without np_admin, the console, identifiers in a convar, ESX admin groups and Discord roles through np_discord count as staff.

Can I use my ESX societies?

Yes. Set esxSociety = 'migrate' and np_banking copies every society_<job> balance into a job account once. Then point your society scripts at np_banking's exports.

Does it work without a framework?

Yes. Standalone uses license identifiers and np_banking keeps its own balances. It has no cash of its own, so cash deposits and withdrawals need a framework or a cash item in the inventory.

Is it in German?

English and German, set with Config.Locale.

Works well with

Build once, ensure it before np_payments, open the Bank app.

Installation, the configuration and the exports are in the docs.

Install np_banking