Documentation

wnt_banking

Banking

A full banking system with accounts, transfers, cards, loans and ATMs.

QBCoreESXQbox

Installation

Follow these steps to get wnt_banking running. It works out of the box on QBCore, ESX and Qbox.

  1. 1

    Download the resource

    Grab the latest release from your account dashboard or straight from your CFX keymaster.
  2. 2

    Drop it into resources

    Extract the folder into your server's resources directory.
  3. 3

    Add it to your server.cfg

    Below your framework and oxmysql:
    server.cfg
    ensure oxmysql
    ensure wnt_banking
  4. 4

    Import the database

    Run the included SQL file once — it creates every table for you:
    bash
    mysql -u root -p yourdatabase < wnt_banking.sql
  5. 5

    Configure & restart

    Set Config.Framework in config.lua, restart your server and you're done!

Make sure wnt_banking loads after your framework and oxmysql so its exports register correctly.

Configuration

Everything lives in config.lua. Just set your framework and you're good to go:

config.lua
Config = {}
Config.Framework      = 'qb'      -- 'qb' | 'esx' | 'qbox'
Config.Locale         = 'en'
Config.StartingBalance = 5000
Config.EnableATMs     = true

Developer API

Exports and events you can use from your own resources:

exports['wnt_banking']:GetBalance(source)

Returns the player's current bank balance.

exports['wnt_banking']:AddMoney(source, amount)

Deposits an amount into the player's account.

exports['wnt_banking']:RemoveMoney(source, amount)

Withdraws an amount, returns false if funds are insufficient.

Troubleshooting

If wnt_bankingwon't start, check your console for missing dependencies and open a ticket in our Discord with the output.