Added pay commands.

This commit is contained in:
BreezyTheDev
2022-08-17 15:26:56 -07:00
committed by GitHub
parent 7f58b4b7d1
commit 9e3c41a58c

View File

@@ -51,6 +51,24 @@ if config["/twt"] then
end, false)
end
if config["pay"] then
RegisterCommand("pay", function(source, args, rawCommand)
local player = source
local target = tonumber(args[1])
local amount = tonumber(args[2])
NDCore.Functions.TransferBank(amount, player, target)
end, false)
end
if config["give"] then
RegisterCommand(Settings.Give.Command, function(source, args, rawCommand)
local player = source
local amount = tonumber(args[2])
NDCore.Functions.GiveCashToNearbyPlayer(player, amount)
end, false)
end
function hasDarkWebPermission(player, players, args)
for _, department in pairs(config["/darkweb"].canNotSee) do
if players[player].job == department then