feat: money change description

This commit is contained in:
Andyyy7666
2022-12-09 03:02:46 +01:00
parent ab877749a8
commit 3b393af7ef
2 changed files with 16 additions and 16 deletions

View File

@@ -12,13 +12,13 @@ NDCore.Functions.AddCommand("setmoney", "Admin command, manage player money.", f
if action == "remove" then
if not amount or amount < 1 then return end
NDCore.Functions.DeductMoney(amount, target, moneyType)
NDCore.Functions.DeductMoney(amount, target, moneyType, "Server staff action.")
elseif action == "add" then
if not amount or amount < 1 then return end
NDCore.Functions.AddMoney(amount, target, moneyType)
NDCore.Functions.AddMoney(amount, target, moneyType, "Server staff action.")
elseif action == "set" then
local character = NDCore.Functions.GetPlayer(target)
NDCore.Functions.SetPlayerData(character.id, moneyType, amount)
NDCore.Functions.SetPlayerData(character.id, moneyType, amount, "Server staff action.")
end
end, true, {
{ name="player", help="Player server id" },