From efea8a015f057c6cf6b2b1f5585057912353a505 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 23 Feb 2023 01:16:05 -0600 Subject: [PATCH] Add job pay --- scripts/server/economy.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/server/economy.js b/scripts/server/economy.js index 50661d2a..f67cc96d 100644 --- a/scripts/server/economy.js +++ b/scripts/server/economy.js @@ -33,6 +33,11 @@ function playerPayDay(client) { // Passive income grossIncome = Math.round(grossIncome + getGlobalConfig().economy.passiveIncomePerPayDay); + // Job Pay + if (getPlayerJob(client) != -1) { + grossIncome = Math.round(grossIncome + getJobRankData(getPlayerJob(client), getPlayerJobRank(client)).pay); + } + // Payday bonus grossIncome = Math.round(grossIncome * getGlobalConfig().economy.grossIncomeMultiplier);