From 632edc96c2a727e0ec508913ffb6bcd44a4c63e2 Mon Sep 17 00:00:00 2001 From: BerkieBb <82737367+BerkieBb@users.noreply.github.com> Date: Fri, 7 Jan 2022 03:03:23 +0100 Subject: [PATCH] chore(paychecks): Add back removed code --- server/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/functions.lua b/server/functions.lua index 8b5d1bb..6275566 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -185,7 +185,7 @@ function PaycheckLoop() local Players = QBCore.Functions.GetQBPlayers() for _, Player in pairs(Players) do local payment = Player.PlayerData.job.payment - if Player.PlayerData.job and Player.PlayerData.job.onduty and payment > 0 then + 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) if account ~= 0 then -- Checks if player is employed by a society