Add files via upload

This commit is contained in:
Andyyy7666 authored and GitHub committed 2022-07-08 23:19:28 +02:00
1 parent 9f14ba65cb
commit ad36f7e286
6 files changed
+612

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
RegisterNetEvent("ND_Banks:withdraw")
AddEventHandler("ND_Banks:withdraw", function(amount)
local player = source
local update = exports["ND_Core"]:withdrawMoney(amount, player)
TriggerClientEvent("ND_Banks:update", player, update)
end)
RegisterNetEvent("ND_Banks:deposit")
AddEventHandler("ND_Banks:deposit", function(amount)
local player = source
local update = exports["ND_Core"]:depositMoney(amount, player)
TriggerClientEvent("ND_Banks:update", player, update)
end)
RegisterNetEvent("ND_Banks:transfer")
AddEventHandler("ND_Banks:transfer", function(amount, target)
local player = source
local update = exports["ND_Core"]:transferBank(amount, player, target)
TriggerClientEvent("ND_Banks:update", player, update)
end)