mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
Merge branch 'main' of https://github.com/Andyyy7666/ND_Framework
This commit is contained in:
@@ -116,6 +116,10 @@ function NDCore.Functions.TransferBank(amount, player, target)
|
|||||||
color = {0, 255, 0},
|
color = {0, 255, 0},
|
||||||
args = {"Success", "You paid " .. NDCore.Players[target].firstName .. " " .. NDCore.Players[target].lastName .. " $" .. amount .. "."}
|
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
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -156,7 +160,11 @@ function NDCore.Functions.GiveCash(amount, player, target)
|
|||||||
NDCore.Functions.UpdateMoney(target)
|
NDCore.Functions.UpdateMoney(target)
|
||||||
TriggerClientEvent("chat:addMessage", player, {
|
TriggerClientEvent("chat:addMessage", player, {
|
||||||
color = {0, 255, 0},
|
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
|
return true
|
||||||
end
|
end
|
||||||
@@ -353,4 +361,4 @@ function NDCore.Functions.VersionChecker(expectedResourceName, resourceName, dow
|
|||||||
end
|
end
|
||||||
end)
|
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")
|
NDCore.Functions.VersionChecker("ND_Core", GetCurrentResourceName(), "https://github.com/Andyyy7666/ND_Framework", "https://raw.githubusercontent.com/Andyyy7666/ND_Framework/main/ND_Core/fxmanifest.lua")
|
||||||
|
|||||||
Reference in New Issue
Block a user