Check for job and rank on payday

This commit is contained in:
Vortrex
2023-03-04 08:34:57 -06:00
parent 77ef9dab35
commit 6b3651f660

View File

@@ -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