mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-17 02:58:33 +00:00
tweak(server/comands): setmoney help & player check
This commit is contained in:
1 parent
ec86f6ff86
commit
b7237729f4
1 file changed
+3
-3
+3
-3
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user