From b7237729f427a9c5d35080f4050bea1b9ef0dbf4 Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Mon, 28 Aug 2023 03:06:01 +0200 Subject: [PATCH] tweak(server/comands): setmoney help & player check --- server/commands.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/commands.lua b/server/commands.lua index 12d583d..a0d09be 100644 --- a/server/commands.lua +++ b/server/commands.lua @@ -35,16 +35,16 @@ lib.addCommand("setmoney", { }, { name = "amount", - type = "number", - help = "bank/cash" + type = "number" } - }, + } }, function(source, args, raw) local action = moneyActions[args.action] local moneyType = args.type:lower() if not action or not lib.table.contains(moneyTypes, moneyType) then return end local player = NDCore.getPlayer(args.target) + if not player then return end local staffMessage, userMessage = action(player, moneyType, args.amount) player.notify({