From 554ae36ec1f89851e6aed52587a2df74c661f86d Mon Sep 17 00:00:00 2001 From: Kakarot <57848836+GhzGarage@users.noreply.github.com> Date: Thu, 23 Nov 2023 11:12:34 -0600 Subject: [PATCH] Update export --- server/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/functions.lua b/server/functions.lua index 6a7d9c9..cc696a9 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -312,13 +312,13 @@ function PaycheckInterval() if not payment then payment = Player.PlayerData.job.payment end if Player.PlayerData.job and payment > 0 and (QBShared.Jobs[Player.PlayerData.job.name].offDutyPay or Player.PlayerData.job.onduty) then if QBCore.Config.Money.PayCheckSociety then - local account = exports['qb-management']:GetAccount(Player.PlayerData.job.name) + local account = exports['qb-banking']:GetAccountBalance(Player.PlayerData.job.name) if account ~= 0 then -- Checks if player is employed by a society if account < payment then -- Checks if company has enough money to pay society TriggerClientEvent('QBCore:Notify', Player.PlayerData.source, Lang:t('error.company_too_poor'), 'error') else Player.Functions.AddMoney('bank', payment, 'paycheck') - exports['qb-management']:RemoveMoney(Player.PlayerData.job.name, payment) + exports['qb-banking']:RemoveMoney(Player.PlayerData.job.name, payment, 'Employee Paycheck') TriggerClientEvent('QBCore:Notify', Player.PlayerData.source, Lang:t('info.received_paycheck', { value = payment })) end else