Skip to main content

Installation

Basic installation instructions for Complete Banking (wasabi_banking).


danger

WARNING**:** Resource must be named wasabi_banking in order to operate properly.

warning

REMOVE ALL BANKING SCRIPTS (esx_banking, qb-banking, etc)

  1. Ensure all dependencies are installed
    &#xNAN;Be sure all dependencies are installed, running, and utilizing the latest versions available.
  2. Follow special changes below depending on framework/inventory:
ESX Installation (No Ox Inventory)

Install the SQL within wasabi_banking/_install_first/ESXNonOXInventory.sql

QBCore

1st, navigate to qb-core/server/player.lua search for self.Functions.SetMetaData and below, add the following:

**
**** function self.Functions.ChangePlayerAccount(account)
** self.PlayerData.charinfo.account = account
self.Functions.UpdatePlayerData()
end

2nd, Add the inventory items to qb-core/shared/items.lua file. The items needed to be installed can be found in wasabi_banking/_install_first/qb-core.md.

QBox

1st, open the configuration at wasabi_banking/game/configuration/config.lua and find:

Config.AutomaticCheckSociety = false -- If you want to use the automatic society table verification you don't need to change the tables and columns below

Config.SocietyTable = 'addon_account_data' -- "bank_accounts" or "management_funds" or "addon_account_data" or "bank_accounts_new"

Config.JobNameColumn = 'account_name' -- "account_name" or "job_name" or "account_name" or "id"

Config.AmountColumn = 'money' -- "account_balance" or "amount" or "money" or "amount"

2nd, make it look like the following:

Config.AutomaticCheckSociety = false -- If you want to use the automatic society table verification you don't need to change the tables and columns below

Config.SocietyTable = 'bank_accounts_new' -- "bank_accounts" or "management_funds" or "addon_account_data" or "bank_accounts_new"

Config.JobNameColumn = 'id' -- "account_name" or "job_name" or "account_name" or "id"

Config.AmountColumn = 'amount' -- "account_balance" or "amount" or "money" or "amount"

3rd, Ensure to follow the OX Inventory instructions below.

OX Inventory (All frameworks)
  • Add item functions to inventory
    &#xNAN;Within the ox_inventory/modules/items/client.lua add this to the bottom of the file:
** Item('transactionsreceipt', function(data, slot)
** ox_inventory:useItem(data, function(data)
if data then
TriggerEvent('wasabi-banking:showTransactions', data)
end
end)
end)
  • Add item data to inventory
    Add the install items to your inventory within the ox_inventory/data/items.lua file. The items needed installed can be found in wasabi_banking/_install_first/ox_inventory.md.
  1. Add Inventory Images (Optional)
    &#xNAN;Feel free to use the provided inventory item images provided in the installation directory.
  2. Edit config as desired (Optional)
    &#xNAN;Optional but recommended to go through the configuration and adjust to your likings.
  3. Drag-and-drop the script
    Drag wasabi_banking in to your resources directory and add ensure wasabi_banking to your server.cfg after all dependencies.