SMX logo

SMX Documentation

Production-grade Script Knowledge Base

Build 2026.04 Live Docs



Banking and Billing

Scripts · FiveM Ready

Typical User Flow

1. Open Bank

Player opens bank UI near bank/ATM and checks account overview.

2. Execute Actions

Withdraw, deposit, transfer, and switch to faction mode if permission is available.

3. Manage Invoices

Open billing menu, create invoices, review open invoices, and pay directly.

4. Automate

Create standing orders for repeated payments and track run status history.

5. Save Goals

Create savings targets and move funds between account and goals.

Integration Examples

-- force account mode toggle
TriggerServerEvent("smx-banking:switchAccount")

-- create invoice from custom flow
TriggerServerEvent("smx-banking:createInvoice", targetId, amount, reason)

-- ask server for account snapshot
Framework.TriggerServerCallback("smx-banking:getInformation", function(data)
    print(json.encode(data))
end)

Use callback responses to keep custom UIs synchronized with current account mode and balances.

Admin Command Examples

/createbill 23 1500 Vehicle repair
/createfactionbill police 23 3500 Duty fine
/smx-banking:billing

Invoice commands are permission-gated through framework admin checks in server/framework.lua.