mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-12-01 14:54:46 +00:00
Update functions.lua
This commit is contained in:
1 parent
31fa7ae3a4
commit
adb24e3f8a
1 file changed
+9
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user