Skip to content

Events & commands ​

Server events ​

server

Local server events (AddEventHandler), never sent to clients. One payload each. They fire after the money moved and the account locks were released.

Event Payload
np_banking:server:ready –
np_banking:server:transaction tx (every ledger row, also external rows from other scripts). Shape
np_banking:server:accountCreated { account }
np_banking:server:accountClosed { account }
np_banking:server:accountFrozen { account, frozen, by }
np_banking:server:memberChanged { account, identifier, role, action = 'added' | 'removed' | 'role' }
np_banking:server:cardIssued { card }
np_banking:server:cardFrozen { card, frozen }
np_banking:server:cardBlocked { card, reason = 'pin' | 'owner' | 'stolen' | 'burned' | … }
np_banking:server:fraudFlagged { account, rule = 'velocity' | 'amount' | 'cloned_card' | …, details, frozen }
np_banking:server:transferQueued { id, ref, from, to, amount, releaseAt }
np_banking:server:transferReleased { id, ref, from, to, amount }
np_banking:server:loanDefaulted { loan, identifier } (loan = the GetLoans shape; loan.collateral / loan.repossess for repossession scripts)
np_banking:server:evidence { type = 'fingerprint' | 'cctv' | 'dye' | 'skimmer', coords, src, identifier, at, … }, for robberies also heist, stage, atm, kind, amount, installer, entries

account = { id, bank, type, label, number, owner, job, frozen, closed }; card = the Card shape.

lua
-- wait for np_banking before calling its exports at start
AddEventHandler('np_banking:server:ready', function()
  local gov = exports.np_banking:GetSocietyAccount('government')
end)

-- repossess the car of a defaulted loan
AddEventHandler('np_banking:server:loanDefaulted', function(data)
  local loan = data.loan
  if loan.kind == 'car' and loan.collateral then flagForRepo(data.identifier, loan.collateral) end
end)

-- evidence for the MDT
AddEventHandler('np_banking:server:evidence', function(e)
  if e.type == 'fingerprint' then addEvidence('fingerprint', e.identifier, e.coords, e.heist) end
end)

Events np_banking listens to ​

Event Fired by Payload
np_banking:payRequest np_phone (mail action type event on a payment request mail) (src, { id }, mailId). Server-local, never a net event; the request is looked up in the clicking player's own list
np_phone:islandAction np_phone A button on a Live Activity (the Freeze button of a "card used far away" alert)
Framework money-change events ESX (esx:addAccountMoney / removeAccountMoney / setAccountMoney), qb / qbx (QBCore:Server:OnMoneyChange) Bank changes by other scripts become external rows

The net events between client and server (np_banking:rpc, np_banking:rpcResult, np_banking:nui, np_banking:atm:view, …) are internal. See the NUI contract.

Commands ​

Command Who What
/bank Everyone (with np_phone) Open the phone straight into the Bank app (Config.Phone.command)
/atminspect Everyone Look for a skimmer on the ATM in front of you. Bindable in the FiveM key settings (np_banking: inspect the ATM)
/atmcut Everyone Cut open a ripped-out ATM at a hideout (angle grinder)
/heistbag Everyone Search your loot bag for a GPS tracker
/bankalarm Player tellers (Config.Robbery.insideJob.jobs) Hold the silent alarm of the branch you stand in (inside job)
/atmdebug Config.Debug = true only Draw the ATM screen corners for tuning Config.Atm.models. See ATMs → Tuning
npbank give|take <server id | account> <amount> [reason] Server console only Give or take bank money. See Staff tools

The server checks everything; none of the commands uses ACE.

Keys ​

Where Keys
World E: use an ATM, take a ticket at a counter, open a deposit box at the vault, the teller console, heist targets
ATM Mouse: click the screen · wheel: scroll · Esc / Backspace: leave
Counter Hold a green button to sign · Esc: leave the counter
Drill minigame Hold E to drill, let go to cool

Item uses ​

Item Use
bank_card, cloned_card At an ATM: insert it. Anywhere else: show the card
bank_cheque Show the cheque: amount, payee, status
atm_skimmer Fit it on the ATM in front of you. A removed skimmer with logged cards writes a cloned_card onto a blank_card
hacking_laptop, thermite, bank_drill At an ATM: jackpotting, blowing it open. Heist stages that need them start at their targets with E
atm_cassette Open it (marked money)
tow_rope, angle_grinder, c4 ATM rip-out and explosives