[QB/ESX] Renewed Banking V3

V1.0.2 Patch Notes & Download Link Updated. Also Updated FAQ

1 Like

Amazing work :clap:

Amazing work from Renewed, Great support and knowledgeable devs.

I got it working but when i switch job to “police 4”, “mechanic 4”, I don’t see their own bank how it was on the video.

Also, where do these go?

Transaction Integrations

exports['Renewed-Banking']:handleTransaction(account, title, amount, message, issuer, receiver, type, transID)
 ---@param account<string> - job name or citizenid
 ---@param title<string> - Title of transaction example `Personal Account / ${Player.PlayerData.citizenid}`
 ---@param amount<number> - Amount of money being transacted
 ---@param message<string> - Description of transaction
 ---@param issuer<string> - Name of Business or Character issuing the bill
 ---@param receiver<string> - Name of Business or Character receiving the bill
 ---@param type<string> - deposit | withdraw
 ---@param transID<string> - (optional) Force a specific transaction ID instead of generating one.

---@return transaction<table> {
  ---@param trans_id<string> - Transaction ID for the created transaction
  ---@param amount<number> - Amount of money being transacted
  ---@param trans_type<string> - deposit | withdraw
  ---@param receiver<string> - Name of Business or Character receiving the bill
  ---@param message<string> - Description of transaction
  ---@param issuer<string> - Name of Business or Character issuing the bill
  ---@param time<number> - Epoch timestamp of transaction
---}


exports['Renewed-Banking']:getAccountMoney(account)
 ---@param account<string> - Job Name | Custom Account Name

---@return amount<number> - Amount of money account has or false

exports['Renewed-Banking']:addAccountMoney(account, amount)
 ---@param account<string> - Job Name | Custom Account Name
  ---@param amount<number> - Amount of money being transacted

---@return complete<boolean> - true | false

exports['Renewed-Banking']:removeAccountMoney(account, amount)
 ---@param account<string> - Job Name | Custom Account Name
  ---@param amount<number> - Amount of money being transacted

---@return complete<boolean> - true | false

In your QBCore/Shared/jobs.lua make sure you add

bankAuth = true, 

below (Or any rank other than boss that needs access)

 isboss = true, 

After replacing the qb-managment exports like this

exports['qb-management']:GetAccount => exports['Renewed-Banking']:getAccountMoney
exports['qb-management']:AddMoney => exports['Renewed-Banking']:addAccountMoney
exports['qb-management']:RemoveMoney => exports['Renewed-Banking']:removeAccountMoney
exports['qb-management']:GetGangAccount=> exports['Renewed-Banking']:getAccountMoney
exports['qb-management']:AddGangMoney=> exports['Renewed-Banking']:addAccountMoney
exports['qb-management']:RemoveGangMoney=> exports['Renewed-Banking']:removeAccountMoney

You use the exports[‘Renewed-Banking’]:handleTransaction export anywhere you add/remove money to an bank account (Player your society through Renewed Banking) to log the transaction into the bank. Everything under the export like —@param just explains what you are meant to put in that field.

You can also look at the server side of Banking like the Withdraw/Deposit/Transfer event to see how I used those exports but instead its just a call to the function handleTransaction

how’d you end up fixing this? i’m running into the same problem

You need to download from the Releases not the source code

After downloading the most recent update, deleting and reinstalling the tables, and oxmysql up to date. The script works for the first time someone creates a new character but after that it does not. After the inifinite loading screen if you restart the script it works perfectly fine
image

1 Like

ESX Version for this?

originally had no plans for that but i am planning on adding esx support here soon! I will let you know when it happens!

Thanks mate

Never been able to get this to properly work right.
Now the nui just reloop loading no errors pops up F8

You might need to disable Renewed Multi job in the config

I’ll look into it thnx

where do i put the exports stuf to in jobs lua as well

so when i use your script this error shows up
[script:qb-multichara] SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:741: SCRIPT ERROR: @qb-core/server/player.lua:138: attempt to index a nil value (field ‘Jobs’)
[script:qb-multichara] > CheckPlayerData (@qb-core/server/player.lua:138)
[script:qb-multichara] > ref (@qb-core/server/player.lua:24)
[script:qb-multichara] > (@oxmysql/dist/build.js:22033)
[script:qb-multichara] > processTicksAndRejections (node:internal/process/task_queues:96)
[script:qb-multichara]
[script:qb-multichara] > handler (@qb-multicharacter/server/main.lua:91)
[script:qb-multichara] > (@oxmysql/dist/build.js:22033)
[script:qb-multichara] > processTicksAndRejections (node:internal/process/task_queues:96)

and

[script:Renewed-Banki] SCRIPT ERROR: @Renewed-Banking/server/framework.lua:36: attempt to index a nil value (upvalue ‘Jobs’)
[script:Renewed-Banki] > GetSocietyLabel (@Renewed-Banking/server/framework.lua:36)
[script:Renewed-Banki] > ref (@Renewed-Banking/server/main.lua:17)
[script:Renewed-Banki] > (@oxmysql/dist/build.js:21810)
[script:Renewed-Banki] > processTicksAndRejections (node:internal/process/task_queues:96)

Hello,

I have everything installed, but the system is looking for ox_target. I though it will use the qb-target.

Anyone know where I’m supposed to put

exports[‘qb-management’]:GetAccount => exports[‘Renewed-Banking’]:getAccountMoney
exports[‘qb-management’]:AddMoney => exports[‘Renewed-Banking’]:addAccountMoney
exports[‘qb-management’]:RemoveMoney => exports[‘Renewed-Banking’]:removeAccountMoney
exports[‘qb-management’]:GetGangAccount=> exports[‘Renewed-Banking’]:getAccountMoney
exports[‘qb-management’]:AddGangMoney=> exports[‘Renewed-Banking’]:addAccountMoney
exports[‘qb-management’]:RemoveGangMoney=> exports[‘Renewed-Banking’]:removeAccountMoney

its literally telling u what to do

  1. now we can transfer, withdraw and deposit but job and gang bank accounts dont show when we have the bank auth to view the accounts

hello, we have recently moved to qbox but having issues where we tried to updating to V2.1 where we was getting issues to using v2.0.2 with no issues apart from the people who can see the job or gang bank accounts cant see these as it dosent show.