Wasabi Scripts
StoreDiscordGitHub
  • Documentation
  • Dependency
    • 🔗wasabi_bridge
      • Dependencies
      • Installation
      • Configuration
      • Custom Notifications
      • Common Issues & Fixes
  • Advanced Series
    • 🚑wasabi_ambulance
      • Dependencies
      • Installation
      • Configuration
      • Death Screens
      • Exports / Events
      • State Bags
      • Customizations
      • Common Issues
        • QBCore
    • 🩺wasabi_crutch
      • Dependencies
      • Installation
      • Configuration
      • Exports
    • 👮‍♂️wasabi_police
      • Dependencies
      • Installation
      • Configuration
      • Exports
      • State Bags
      • Events
      • Customizations
    • 🔎wasabi_evidence
      • Dependencies
      • Installation
      • Configuration
      • Customizations
    • 🛡️wasabi_adminmenu
      • Dependencies
      • Installation
      • Configuration
    • 👷wasabi_multijob
      • Dependencies
      • Installation
      • Configuration
      • Replace ESX Boss Menus
    • 🔑wasabi_carlock
      • Dependencies
      • Installation
      • Configuration
      • Exports
      • Common Issues
        • QBCore
  • Core UI Series
    • 🖥️wasabi_loadingscreen
      • Configuration
    • 🧑‍🤝‍🧑wasabi_multichar
      • Dependencies
      • Installation
      • Configuration
      • Exports
      • Events
    • 💳wasabi_banking
      • Dependencies
      • Installation
      • Configuration
      • Exports
    • 👼wasabi_spawn
      • Dependencies
      • Installation
      • Configuration
      • Exports
      • Events
    • 🔔wasabi_notify
      • Exports / Events
      • Configuration
      • Change Framework Notify
    • ⏸️wasabi_pausemenu
      • Dependencies
      • Installation
      • Configuration
      • Exports
  • Heist Series
    • 🏦wasabi_pacificrobbery
      • Dependencies
      • Installation
      • Configuration
      • Events
    • 🏦wasabi_paletorobbery
      • Dependencies
      • Installation
      • Configuration
      • Events
    • 🏦wasabi_fleecarobberies
      • Dependencies
      • Installation
      • Configuration
      • Events
  • 💎wasabi_vangelicorobbery
    • Dependencies
    • Installation
    • Configuration
    • Events
  • 🔫wasabi_ammunationrobbery
    • Dependencies
    • Installation
    • Configuration
    • Events
  • 🚢wasabi_yachtheist
    • Dependencies
    • Installation
    • Configuration
    • Events
  • Free Releases
    • 👕fivem-appearance
      • Installation
      • Dependencies
      • Common Issues
      • Snippets
      • Exports
      • Examples
    • 👩‍💻wasabi_discord
      • Installation
      • Exports
Powered by GitBook
On this page
  1. Core UI Series
  2. wasabi_banking

Installation

Basic installation instructions for this script

PreviousDependenciesNextConfiguration

Last updated 21 days ago


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

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

  1. Ensure all dependencies are installed Be sure all 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, navigate to qbx-core/server/player.lua search for function RemovePlayerFromGang(citizenid, gangName) and below, add the following:


    ---@param identifier Source | string
    ---@param iban boolean
    function ChangePlayerAccount(identifier, iban)
        local player = type(identifier) == 'string' and (GetPlayerByCitizenId(identifier) or GetOfflinePlayer(identifier)) or GetPlayer(identifier)

        if not player then return end

        player.PlayerData.charinfo.account = account

        UpdatePlayerData(identifier)
    end

    exports('ChangePlayerAccount', ChangePlayerAccount)

2nd, search for function self.Functions.SetJobDuty(onDuty) and below add the following:


    ---@param iban boolean
    function self.Functions.ChangePlayerAccount(iban)
        ChangePlayerAccount(self.PlayerData.source, iban)
    end

3rd, ensure to follow the OX Inventory instructions below as well.

OX Inventory (All frameworks)
  • Add item functions to inventory 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) Feel free to use the provided inventory item images provided in the installation directory.

  2. Edit config as desired (Optional) 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_bankingto your server.cfg after all dependencies.

💳
dependencies