[Help] QBCore Paycheck Function fix

Hello, Im new to qbcore (please be gentle), Im trying to have jobs that are listed in qb-management, pay for salaries from management funds. However it is not pulling from the management funds. I was wondering if anyone was able to figure out how to make it actually pull it from the business acounts, instead of just giving the players funds. (jobs like police, ambulance, mechanics, burgershot, etc)

below is the example from my qb-core/server/functions.lua

list of jobs in the database management funds

2 Likes

Hi! QBCore use two files for handle gangs and job; you need to add here all the levels of each job and their respective salaries…

You need to search this file: qb-core/shared/jobs.lua



And, due you say you want to use the money from the society for the payment, you need to set QBConfig.Money.PayCheckSociety = true on qb-core/config.lua:

1 Like

Hello,

So yes i have those files already in place. however they are not pulling from the society account Pictures included below.

Main/Configu.lua

shared/jobs.lua

So all jobs have salaries and items identified =). Like i said it just does not pull from the society

2 Likes

UPDATE:

I found the fix for the paycheck if using qb-management. Need to replace the original trigger event for qb-bossmenu (under the paycheckloop function) and insert the following line in its place. It perfectly pulls funds from the management_funds table to give realistic RP.

exports[“qb-management”]:RemoveMoney(Player.PlayerData.job.name, payment)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.