mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
Added pay commands.
This commit is contained in:
@@ -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
|
||||
@@ -87,4 +105,4 @@ if config["/911"].enabled then
|
||||
local player = source
|
||||
TriggerClientEvent("ND_Chat:911", -1, GetEntityCoords(GetPlayerPed(player)), table.concat(args, " "))
|
||||
end, false)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user