Add job pay

This commit is contained in:
Vortrex
2023-02-23 01:16:05 -06:00
parent a0d03a0aab
commit efea8a015f

View File

@@ -33,6 +33,11 @@ function playerPayDay(client) {
// Passive income // Passive income
grossIncome = Math.round(grossIncome + getGlobalConfig().economy.passiveIncomePerPayDay); 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 // Payday bonus
grossIncome = Math.round(grossIncome * getGlobalConfig().economy.grossIncomeMultiplier); grossIncome = Math.round(grossIncome * getGlobalConfig().economy.grossIncomeMultiplier);