diff --git a/scripts/server/economy.js b/scripts/server/economy.js index 764b3f7c..801db35d 100644 --- a/scripts/server/economy.js +++ b/scripts/server/economy.js @@ -84,4 +84,31 @@ function forcePlayerPayDayCommand(command, params, client) { playerPayDay(targetClient); } +// =========================================================================== + +function taxInfoCommand(command, params, client) { + if(areParamsEmpty(params)) { + messagePlayerSyntax(client, getCommandSyntaxText(command)); + return false; + } + + let wealth = calculateWealth(client); + let tax = calculateIncomeTax(wealth); + + messagePlayerInfo(client, `Your tax on payday is: $${tax}. Use {ALTCOLOUR}/help tax {MAINCOLOUR}for more information.`); +} + +// =========================================================================== + +function wealthInfoCommand(command, params, client) { + if(areParamsEmpty(params)) { + messagePlayerSyntax(client, getCommandSyntaxText(command)); + return false; + } + + let wealth = calculateWealth(client); + + messagePlayerInfo(client, `Your wealth is: $${wealth}. Use {ALTCOLOUR}/help wealth {MAINCOLOUR}for more information.`); +} + // =========================================================================== \ No newline at end of file