From adb24e3f8aeced69068e314be394323ca9c6de19 Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Thu, 11 Aug 2022 19:43:33 +0200 Subject: [PATCH] Update functions.lua --- ND_Core/server/functions.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ND_Core/server/functions.lua b/ND_Core/server/functions.lua index f20d98d..07597dc 100644 --- a/ND_Core/server/functions.lua +++ b/ND_Core/server/functions.lua @@ -116,6 +116,10 @@ function NDCore.Functions.TransferBank(amount, player, target) color = {0, 255, 0}, args = {"Success", "You paid " .. NDCore.Players[target].firstName .. " " .. NDCore.Players[target].lastName .. " $" .. amount .. "."} }) + TriggerClientEvent("chat:addMessage", target, { + color = {0, 255, 0}, + args = {"Success", NDCore.Players[player].firstName .. " " .. NDCore.Players[target].lastName .. " sent you $" .. amount .. "."} + }) return true end end @@ -156,7 +160,11 @@ function NDCore.Functions.GiveCash(amount, player, target) NDCore.Functions.UpdateMoney(target) TriggerClientEvent("chat:addMessage", player, { color = {0, 255, 0}, - args = {"Success", "You gave " .. NDCore.Players[target].firstName .. " " .. NDCore.Players[target].lastName .. " $" .. amount .. "."} + args = {"Success", "You gave $" .. amount .. "."} + }) + TriggerClientEvent("chat:addMessage", target, { + color = {0, 255, 0}, + args = {"Success", " Received $" .. amount .. "."} }) return true end @@ -353,4 +361,4 @@ function NDCore.Functions.VersionChecker(expectedResourceName, resourceName, dow end end) end -NDCore.Functions.VersionChecker("ND_Core", GetCurrentResourceName(), "https://github.com/Andyyy7666/ND_Framework", "https://raw.githubusercontent.com/Andyyy7666/ND_Framework/main/ND_Core/fxmanifest.lua") \ No newline at end of file +NDCore.Functions.VersionChecker("ND_Core", GetCurrentResourceName(), "https://github.com/Andyyy7666/ND_Framework", "https://raw.githubusercontent.com/Andyyy7666/ND_Framework/main/ND_Core/fxmanifest.lua")