SMX logo

SMX Documentation

Production-grade Script Knowledge Base

Build 2026.04 Live Docs



Banking and Billing

Scripts · FiveM Ready

Exports

No custom public exports are provided by smx-banking. Integration is handled via callbacks, net events, NUI callbacks and commands.

Server Callbacks

Returns current account context and balance payload.

smx-banking:getInformation

Returns personal or faction history entries depending on active mode.

smx-banking:getHistory

Returns open bills for active owner/account context.

smx-banking:getBills

Returns standing orders and execution run history.

smx-banking:getStandingOrders

Returns savings goals for the active account mode.

smx-banking:getSavingsGoals

Returns billing menu context (faction billing availability).

smx-banking:getBillingContext

Returns invoices relevant to the current player as recipient/owner.

smx-banking:getMyInvoices

Returns faction invoices if player has faction billing rights.

smx-banking:getFactionInvoices

Server Events (Receive)

Switches account mode between personal and allowed faction account.

smx-banking:switchAccount

Withdraws amount from bank to cash.

smx-banking:withdraw

Deposits amount from cash to bank.

smx-banking:deposit

Transfers amount to personal account number or faction account.

smx-banking:transfer

Pays a single open bill by id.

smx-banking:payBill

Pays all currently open bills if enough funds exist.

smx-banking:payAllBills

Creates a standing order with category, mode and interval.

smx-banking:createStandingOrder

Enables/disables an existing standing order.

smx-banking:toggleStandingOrder

Deletes a standing order.

smx-banking:deleteStandingOrder

Creates a savings goal with target amount.

smx-banking:createSavingsGoal

Moves money from account into savings goal.

smx-banking:savingsAdd

Moves money out of savings goal back to account.

smx-banking:savingsRemove

Cashes out reached savings goal and removes it.

smx-banking:savingsCashout

Deletes a savings goal (refund logic applied if needed).

smx-banking:deleteSavingsGoal

Creates an invoice to a target player (or test NPC id context).

smx-banking:createInvoice

Requests generated test invoice from configured NPC endpoint.

smx-banking:requestTestNpcInvoice

Client Events (Receive)

Forces UI data refresh.

smx-banking:refresh

Shows localized notification key/message.

smx-banking:client:notify

NUI Callbacks

withdraw

Calls server withdraw event.

deposit

Calls server deposit event.

transfer

Calls server transfer event.

switchAccount

Toggles personal/faction account mode server-side.

payBill

Pays single invoice by id.

payAllBills

Pays all open invoices.

createInvoice

Creates invoice from billing menu.

getNearbyPlayers

Collects nearby players (+ optional test NPC) for invoice target picker.

createStandingOrder

Creates recurring payment entry.

toggleStandingOrder

Enables/disables standing order.

deleteStandingOrder

Deletes standing order.

createSavingsGoal

Creates savings goal.

savingsAdd

Add amount to goal.

savingsRemove

Remove amount from goal.

savingsCashout

Cash out reached goal.

deleteSavingsGoal

Delete goal with refund behavior.

exit

Close bank UI.

billingClose

Close billing UI.

Commands

/smx-banking:billing

Open/close billing menu (also keymapped, default F7).

/createbill [playerId] [amount] [reason]

Create personal invoice (admin only).

/createrechnung [playerId] [amount] [reason]

German alias for /createbill.

/invoice [playerId] [amount] [reason]

Alias for /createbill.

/createfactionbill [factionJob] [playerId] [amount] [reason]

Create faction invoice (admin only).

/fraktionsrechnung [factionJob] [playerId] [amount] [reason]

German alias for faction invoice command.