Skip to content

Configuration ​

Everything is in shared/config/. 00_core.lua creates Config, every other file extends it. The files are shared (client and server), so keep secrets out of them: the only secret, the PIN pepper, is a convar (see Installation). Money is whole dollars (integers, like ESX). Times are seconds unless the key says otherwise; *Days and *Hours in the branch config are real time, opening hours are the in-game clock.

File What
00_core.lua Framework and inventory selection, locale, money limits, RPC rate limit, ledger, ticks, fraud rules, police jobs, staff Discord roles
banks.lua The six lore banks: label, colours, logos, account number prefix, fees, savings interest, card tiers, branch blips, transfer delay
accounts.lua Default bank, account limits, job / faction accounts, ESX society migration, government account, credit score
cards.lua Card item, PIN length and tries, expiry, fees, tiers
items.lua Every item np_banking uses; marked money and receipts
phone.lua · atm.lua · branch.lua · robbery.lua The Bank app, ATMs, branch counter and robberies

With np_admin running, staff edit the settings marked below in its Resource settings page (Editable in np_admin).

Core (00_core.lua) ​

Option Default Description
Config.Framework 'auto' 'esx', 'qbx', 'qb', 'standalone', or auto-detect (es_extended first)
Config.Inventory 'auto' 'np', 'ox', 'qb', 'none', or auto-detect (np_inventory first)
Config.Locale 'en' 'en' or 'de', for server messages and the UI
Config.Debug false Debug log, and the /atmdebug command (registered when the client loads)
Config.Currency '$' Currency symbol
Config.MaxAmount 100000000 Largest single amount any call accepts
Config.AdminDiscordRoles {} Discord roles that count as staff while np_admin is not running (np_discord)
Config.AdminDiscordCacheSeconds 60 How long a Discord role check is cached
Config.Integrations {} Switch a sibling off even when it runs: { np_phone = false }
Config.Rpc { perSecond = 8, burst = 16 } RPC rate limit per player (token bucket)
Config.PoliceJobs { 'police', 'sheriff' } Jobs that get bank alarms as a toast and a blip when np_mdt is not running
lua
Config.Ledger = {
  lockWaitMs = 2000,         -- how long a money call waits for a busy account before answering 'busy'
  recordExternal = true,     -- framework bank changes by other scripts become 'external' rows
  keepDays = 0,              -- 0 = keep every transaction; > 0 prunes older rows
  pageSize = 30,             -- default page of GetTransactions
}
Config.Ticks = { intervalSeconds = 60 }
Config.Fraud = {
  enabled = true,
  windowSeconds = 600,
  maxOutgoing = 12,          -- more outgoing transactions than this in the window: flagged
  maxAmount = 250000,        -- more money out than this in the window: flagged
  autoFreeze = false,        -- also freeze the account when flagged (staff unfreeze)
}

See Accounts & ledger → Fraud rules.

Banks (banks.lua) ​

lua
Config.Banks = {
  default = 'maze',
  order = { 'maze', 'fleeca', 'pacific', 'blaine', 'lombank', 'union' },
  transferDelayMinutes = 60,         -- between two banks; 'instant' costs the bank's fees.instantPercent
  blips = { enabled = true, sprite = 108, scale = 0.8, shortRange = true },
  list = {
    maze = {
      label = 'Maze Bank', full = 'Maze Bank of Los Santos', short = 'Maze', prefix = 'LS', tint = 'red',
      colors = { primary = '#e1090a', secondary = '#ffffff' }, blipColour = 1,
      logo = { lockup = 'assets/banks/maze-dark.svg', mark = 'assets/banks/maze-mark.svg', tile = 'assets/banks/maze-tile.svg' },
      fees = { transfer = 0, instantPercent = 1, instantMin = 5, foreignAtm = 5 },
      interest = { savings = 0.05 },
      cardTiers = { 'debit', 'gold', 'black' },
      branches = { { id = 'maze_tower', label = 'Maze Bank Tower', coords = vector4(-66.7, -802.6, 44.2, 340.0) } },
    },
    -- fleeca, pacific, blaine, lombank, union …
  },
}
Config.Interest = { enabled = true, maxBalance = 2000000 }
Field Description
prefix First two letters of the bank's account numbers (LS-48 1192)
tint The Nimbus tile tint other np_* resources use when they draw this bank
fees.transfer Fee for a transfer to another bank
fees.instantPercent / instantMin Instant transfer to another bank: percent of the amount, at least instantMin
fees.foreignAtm Fee this bank's ATMs charge cards and phones of other banks
interest.savings Percent per real day on savings accounts, paid by the tick up to Config.Interest.maxBalance
cardTiers Card tiers this bank issues (see Cards)
branches Map blips { id, label, coords }; ids match the branch locations in Config.Branch.locations
retail = false Union Depository: no retail accounts
Bank Fees (instant % / min / its ATMs for other banks) Savings interest Card tiers
Maze Bank 1 % / $5 / $5 0.05 % debit, gold, black
Fleeca 1 % / $5 / $4 0.06 % debit, gold
Pacific Standard 0 % / $0 / $5 0.05 % debit, gold, black
Blaine County Savings 1 % / $5 / $3 0.08 % debit
Lombank 0.5 % / $5 / $5 0.04 % debit, business
Union Depository 0 / 0 / 0 0 none

Accounts (accounts.lua) ​

lua
Config.Accounts = {
  defaultBank = 'maze',          -- every character gets a checking account here on first login
  maxOwned = 6,                  -- accounts a character may own (checking included)
  maxMembers = 6,                -- members of one shared account (owner included)
  roles = { 'owner', 'spend', 'view' },
  pinForBankCharges = false,     -- ask for the card PIN on bank charges in np_payments (pinRequired on ListAccounts)
  societies = {
    autoCreate = true,
    ignore = { 'unemployed', 'unemployed2' },
    defaultBank = 'lombank',
    spendGrade = false,          -- employees from this grade on may spend; false: only the boss spends
    jobs = {
      police = { label = 'LSPD', type = 'faction', bank = 'union' },
      sheriff = { label = 'BCSO', type = 'faction', bank = 'blaine' },
      ambulance = { label = 'EMS', type = 'faction', bank = 'union' },
      mechanic = { label = 'Mechanic', type = 'business' },
    },
  },
  esxSociety = 'off',            -- 'migrate': copy every society_<job> balance once
  government = { label = 'City of Los Santos', bank = 'union', job = 'government' },
}
Config.Credit = { start = 600, min = 300, max = 850, keepHistory = 50 }
Option Description
societies.autoCreate Any job not listed in jobs (and not in ignore) gets a business account at defaultBank on first use
societies.jobs Label, type (business, society, faction) and bank of known jobs
societies.spendGrade The boss is always owner. Employees from this grade on may spend, below it view
esxSociety 'off' leaves esx_addonaccount alone; 'migrate' copies every society_<job> balance once. With np_faction run only one of the two imports (np_faction: Config.Bank.bankingMigrates = true when np_banking imports)
government The city's account (fines, taxes), created on the first start
Config.Credit Credit score start, range and history length. Bands: excellent ≥ 750, good ≥ 670, fair ≥ 580, else poor

Cards (cards.lua) ​

lua
Config.Cards = {
  item = 'bank_card',
  itemAliases = { 'credit_card' },   -- other card item names other resources may hand us
  pinLength = 4,
  maxTries = 3,                      -- wrong PINs in a row before the card is blocked
  expiryDays = 56,                   -- real days until a card expires
  issueFee = 0,
  replaceFee = 50,
  maxPerAccount = 4,                 -- active cards on one account
  imagePath = nil,                   -- metadata.image = imagePath .. '<bank>_<tier>.png' when set
  tiers = {
    debit = { label = 'Debit', dailyLimit = 5000, contactless = 100 },
    gold = { label = 'Gold', dailyLimit = 15000, contactless = 150, minBalance = 50000 },
    black = { label = 'Black', dailyLimit = 50000, contactless = 250, minBalance = 500000 },
    business = { label = 'Business', dailyLimit = 20000, contactless = 150 },
    prepaid = { label = 'Prepaid', dailyLimit = 2000, contactless = 100, anonymous = true },
    cloned = { label = 'Debit', dailyLimit = 1500, contactless = 100, uses = 3 },
  },
}

dailyLimit is the most a card spends per 24 h, contactless the most one payment without a PIN. minBalance is what the account needs to upgrade to that tier at a branch. cloned is the tier of cards written by a skimmer (burns after uses withdrawals). See Bank cards & PINs.

Items (items.lua) ​

lua
Config.MarkedMoney = { item = 'black_money', account = 'dirty' }
Config.Receipt = { reuse = 'receipt', item = 'bank_receipt' }
Config.Items = { bank_card = { label = 'Bank card', weight = 5, stack = false, usable = true, … }, … }
Option Description
MarkedMoney Robbery payouts: the ESX black_money account, np_inventory's black_money item
Receipt np_payments' receipt item is reused when it exists, otherwise bank_receipt
Items Every item in np_inventory's item shape (label, description, weight in grams, stack, close, category, icon, tint, usable). See Installation → Items

Phone (phone.lua) ​

lua
Config.Phone.appId = 'bank'           -- np_phone app id (and the RPC prefix 'bank.<name>' inside np_phone)
Config.Phone.name = 'Bank'
Config.Phone.icon = 'fa-solid fa-building-columns'
Config.Phone.tint = 'blue'
Config.Phone.ui = 'web/dist/phone.html'
Config.Phone.devUrl = nil              -- 'http://localhost:5188/phone.html' while running npm run dev
Config.Phone.default = true            -- on every phone, cannot be removed
Config.Phone.bridgeMoney = true        -- np_phone's 'bank' money goes through np_banking's ledger
Config.Phone.command = 'bank'          -- client command that opens the phone into the app (false = none)
Config.Phone.push = {
  paycheck = true, received = true, cardUsed = true,
  lowBalance = 500,                    -- notify once when a payment takes the balance below this (false = off)
  farAwayMeters = 250,                 -- card used by someone else this far from the holder: fraud warning (false = off)
  paycheckPattern = { 'pay', 'salary', 'gehalt', 'lohn', 'wage' },
}
Config.Phone.requests = { maxOpen = 10, expiryHours = 48, skipDelay = true, chatMessage = true }
Config.Phone.island = { leadMinutes = 120, checkSeconds = 60 }
Config.Phone.transactionsPage = 25
Config.Phone.statementRows = 200

See Bank app.

ATM (atm.lua) ​

Option Default Description
enabled true The ATM module
defaultBank 'maze' Brand of model ATMs nobody configured
models 4 props Per model: bank, label, the screen's four corners screen = { tl, tr, br, bl } (entity offsets in metres) and the stand offset. See ATMs → Tuning
locations 3 Extra or re-branded ATMs { id?, coords = vector4, bank, label, model?, spawn? }. A location within matchRadius of a map ATM re-brands it; spawn = true registers the prop with np_prophandler
matchRadius 2.0
allowModelAtms true false: only ATMs listed in locations work
useDistance / scanIntervalMs / scanRadius 1.3 / 1000 / 3.0 Prompt distance, prop scan
maxDistance 3.0 Server: further away than this ends the session
prompt { key = 'E', icon = 'money-bill-transfer' }
camera { enabled = true, fov = 38.0, fill = 0.78, easeMs = 650 } fill = share of the view the screen fills
anim ATM enter / idle / exit clips
dui { width = 800, height = 600, pool = 2, mirrorDistance = 12.0 } One DUI for your own ATM, one for an ATM somebody near you uses
session { idle = 45, forgottenCard = 30, cashTray = 30 } Seconds: idle end, a forgotten card is kept, untaken cash is pulled back and refunded
cash see below Cash stock per ATM
phone { enabled = true, items = { 'phone' }, maxWithdraw = 1000 } Tap the phone instead of a card: checking account, no PIN, lower limit
deposit / transfer true / true
receipt { enabled = true, default = true }
statementRows 10
brokenMinutes 120 Default repair time when an ATM is out of order
adSeconds / ads 8 / 2 adverts Idle screen adverts
lua
cash = {
  start = 25000, capacity = 60000, notes = { 20, 50, 100 }, step = 10, min = 20,
  maxWithdraw = 5000,                 -- per withdrawal (the card's daily limit applies on top)
  quick = { 50, 100, 200, 500, 1000 }, mostUsed = 500,
  restock = { enabled = true, everyMinutes = 30, amount = 3000 },   -- NPC cash-in-transit; false: only RestockAtm
},

Branch (branch.lua) ​

Option Default Description
enabled true The branch module
tellerJob / tellerMinGrade 'banker' / 0 Players with this job (on duty) at the teller console take the counter. false = NPC tellers only
tellerCommission 1 Percent of a loan the approving teller earns (paid by the bank)
counterRadius / vaultRadius 3.0 / 14.0 Metres the customer must stay within (server checked)
sessionMinutes 20 A counter session ends after this long
npcServeSeconds 2 An NPC teller calls the next ticket after this long
pedModel 'ig_barry' Default NPC teller
defaultHours { 7, 21 } Opening hours (in-game clock). hours = false on a location: always open
serviceOrder 9 services Nav order of the counter screen
locations 11 Branches: id, bank, label, core (blip id), services, hours?, model?, ped (vec4), counter, console, vault?, boxes = { prefix, from }
accounts { open = { 'personal', 'savings', 'shared' }, openFee = 0, coOwnerRadius = 6.0 }
boxes see Branches Sizes, rent, keys, warrants
deposits see Branches Savings products
loans see Branches Loan kinds, bands, defaults
cards { orderFee = nil, replaceFee = nil } nil = Config.Cards.issueFee / replaceFee
cheques { fee = 25, min = 100, max = 2000000, checkPayee = true }
gold { item = 'gold_bar', base = 18500, volatility = 0.035, min = 12000, max = 30000, spread = 0.04, maxPerTrade = 25, refuseMarked = true, historyDays = 14 }
largeCash { threshold = 10000, noticeHours = 24, keepHours = 72, max = 1000000, maxOpen = 2 }
business { bank = 'lombank', licence = false, payrollMax = 25, statementDays = 7 } licence = np_identification document kind needed to open one
ticks seconds per tick boxes, deposits, loans, gold, index, notices

The server reads the in-game hour from GlobalState.currentTime { hour } or GlobalState.clock when a time script sets one, else from the hour the client reports when it takes a ticket.

Robbery (robbery.lua) ​

Option Default Description
enabled true The robbery module
policeJobs { 'police', 'sheriff' } Counted for the minimum police on duty
alarmBlipSeconds 120 Fallback alarm blip without np_mdt
gpsUpdateSeconds 5 GPS tracker blips move every N seconds
timedTolerance 0.8 A timed action must take at least 80 % of its duration (too_fast)
positionSlack 1.5 Metres added to every target radius for the server position check
globalCooldown 900 Seconds between two bank heists anywhere (ATMs excluded)
maxLootRolls 50
dye { valuePercent = 40 } Stained notes are paid at this share of their value
policeEta { base = 210, perUnit = 15, min = 60 } The police ETA chip in the heist HUD (a guess)
evidence { enabled = true, fingerprintChance = 100, cctvChance = 100, bareHands = { … } } Fingerprints unless the ped wears gloves (arms drawable not in bareHands); CCTV unless the power is cut
insideJob { enabled = true, jobs = { 'banker', 'bank' }, minGrade = 0, seconds = 300, cooldown = 3600 } A teller holds the silent alarm
minigames hack, thermite, drill Puzzle sizes and timings (also sent to np_minigames when Config.Minigames.tuning is on)
loot 8 tables Loot tables (marked money or item, with chance and dyeChance)
heists 6 Fleeca × 2, Pacific, Paleto, Union The heists (stage engine). See Robberies → Heist config
atm skimmer, jackpot, ripout, blow, cassette ATM jobs. See Robberies → ATM jobs

Config.Minigames (also in robbery.lua) switches the robbery minigames to np_minigames while it runs: enabled, tuning, games and difficulty per use. See Robberies → Minigames (np_minigames).

Editable in np_admin ​

With np_admin running, staff change these under Settings → Banking (Resource settings). The config files stay the default; np_admin stores only the overrides.

Category Fields
General Locale (restart), Debug, Banks.transferDelayMinutes, AdminDiscordRoles
Ledger Ledger.recordExternal, Ledger.keepDays
Cards Cards.maxTries, Cards.expiryDays, Cards.replaceFee
Fraud Fraud.enabled, Fraud.maxOutgoing, Fraud.maxAmount, Fraud.autoFreeze
Accounts Accounts.maxOwned, Accounts.maxMembers, Accounts.pinForBankCharges
Minigames Robbery.minigames.* (puzzle sizes and timings), Minigames.enabled, Minigames.tuning, Minigames.games.<use> and Minigames.difficulty.<use> for hack, sync_hack, thermite, drill, atm_hack (np_minigames). Each heist's own minigame difficulty is with the heist's settings