NX Creative

Installation

Resource-specific setup for nx_realbanking. Dependencies, database import, and framework detection.

On this page

For server-wide prerequisites (artifacts, oxmysql, ox_lib), work through the generic install guide first. This page only lists what is specific to nx_realbanking.

Dependencies#

Framework detection is automatic: ESX Legacy (1.9.0+) or QBCore. Make sure the framework resource starts before nx_realbanking.

Database import#

Import the schema into the same database oxmysql points at:

Shell
mysql -u <user> -p <database> < sql/install.sql

The schema creates:

  • nx_realbanking_accounts. Account records.
  • nx_realbanking_transactions. Transaction history.
  • nx_realbanking_daily_limits. Daily limit counters.
  • nx_realbanking_interaction_logs. Security and audit trail.
  • Invoice tables. Invoices, items, autopay, credit cards, billing.
  • nx_realbanking_society_log. History of company accounts.
  • nx_realbanking_society_numbers. The account number of each company.

The two society tables are also created by the resource itself when it starts, so an existing install needs no manual SQL for them.

Fines need the invoices table to hold the fine type and an external_ref column. nx_realbanking adds both on start. If its database user has no ALTER rights, fines stay off until you run the two ALTER TABLE lines at the end of the invoices section in sql/install.sql.

[!tip] sql/install.sql is idempotent. It uses CREATE TABLE IF NOT EXISTS and INSERT IGNORE, so re-running it on an existing install is safe and leaves your data untouched. Tested on MySQL 5.7+ and MariaDB 10.2+.

server.cfg order#

Shell
ensure oxmysqlensure ox_libensure nx-3d# ensure your framework here (es_extended or qb-core)ensure nx_realbanking

Optional items#

If ox_inventory is present, register the card and receipt items in ox_inventory/data/items.lua:

Lua
['bank_card'] = {    label = 'Maze Bank Card',    weight = 10,    stack = false,    close = true,    description = 'Official Maze Bank debit card'},['atm_receipt'] = {    label = 'ATM Receipt',    weight = 0,    stack = true,    close = false,    decay = 1440},['credit_card'] = {    label = 'Credit Card',    weight = 10,    stack = false,    close = true}

The credit-card item name is configurable, see Config.Credit.items.creditCardItem.

Convars#

Set these in server.cfg to override runtime behavior without editing the config file:

Shell
set nx_realbanking:debug "true"set nx_realbanking:locale "en"set nx_realbanking:framework "auto"  # auto | esx | qbcore

Updating#

Replace the resource folder and restart. New tables and columns are added on start, so no manual SQL is needed. Two kinds of file you may have edited need a look. The lists below are what to check when updating to 1.11.0.

Edited bridge files#

The files in bridge/ are yours to edit (see Customisation hooks). If you keep your own copy, compare it with the new one after an update:

  • bridge/client.lua: copy the myInvoices option from the new Custom.AddBankTarget. Without it the banker's My Open Invoices option does not appear.
  • bridge/server.lua: add Custom.CanInvoiceCompany from the new file if you want to limit who may invoice which company. Without it every company can be billed, as before.

Edited locale files#

If you edited the locale files, add these keys to each language you use.

In shared/locales/<lang>.lua:

KeyEnglish text
action_my_invoicesMy Open Invoices
notify_no_open_invoicesNo open invoices
notify_my_open_invoicesYou have %s open invoices totaling $%s (the count, then the total)
error_no_one_nearbyNo one is close enough to check

The English text of action_inspect is now Check a Person's Unpaid Invoices.

In nui/js/locales/<lang>.js:

KeyEnglish text
bank.pin.errRateLimitedToo many PIN attempts. Try again in {minutes} min.
bank.pin.errAccountNotFoundWe couldn't find that account.
bank.pin.errAccessDeniedOnly the account owner can change this PIN.
bank.pin.errPaymentFailedThe fee couldn't be charged, so your PIN was not changed.
bank.pin.errNoResponseThe bank did not answer. Try again.
bank.pin.errAlreadyExistsThis account already has a PIN.

We are not affiliated with or endorsed by Rockstar North, Take-Two Interactive or other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc. Our checkout process is owned & operated by Tebex Limited, who handle product fulfilment, billing support and refunds.