diff --git a/scripts/server/economy.js b/scripts/server/economy.js index ce042c12..cadd11d0 100644 --- a/scripts/server/economy.js +++ b/scripts/server/economy.js @@ -35,7 +35,11 @@ function playerPayDay(client) { // Job Pay if (getPlayerJob(client) != -1) { - grossIncome = Math.round(grossIncome + getJobRankData(getPlayerJob(client), getPlayerJobRank(client)).pay); + if (!getJobRankData(getPlayerJob(client), getPlayerJobRank(client))) { + grossIncome = grossIncome + 0; + } else { + grossIncome = Math.round(grossIncome + getJobRankData(getPlayerJob(client), getPlayerJobRank(client)).pay); + } } // Payday bonus