From 997e19a9dad9ba476eb16ed0c447c6858c82addf Mon Sep 17 00:00:00 2001 From: Molicheu <64894726+Molicheu@users.noreply.github.com> Date: Mon, 28 Mar 2022 22:36:38 -0400 Subject: [PATCH] Rename qb-bossmenu to qb-management --- server/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/functions.lua b/server/functions.lua index 2e89a2c..b5e21be 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -173,13 +173,13 @@ function PaycheckInterval() local payment = Player.PlayerData.job.payment 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-bossmenu']:GetAccount(Player.PlayerData.job.name) + local account = exports['qb-management']:GetAccount(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) - TriggerEvent('qb-bossmenu:server:removeAccountMoney', Player.PlayerData.job.name, payment) + TriggerEvent('qb-management:server:removeAccountMoney', Player.PlayerData.job.name, payment) TriggerClientEvent('QBCore:Notify', Player.PlayerData.source, Lang:t('info.received_paycheck', {value = payment})) end else