This commit is contained in:
Michael
2020-06-02 15:14:19 +02:00
parent 9a3af81079
commit 254e7b0362
2 changed files with 4 additions and 4 deletions

View File

@@ -162,11 +162,13 @@ export default function (globalData: IGlobalData) {
input.getValue(name => { input.getValue(name => {
mp.events.call("CLIENT:InteractionMenu_Pay_Name", name); mp.events.call("CLIENT:InteractionMenu_Pay_Name", name);
mp.gui.cursor.show(false, false); mp.gui.cursor.show(false, false);
menu.Close(true);
}); });
} }
}); });
menu.MenuClose.on(() => { menu.MenuClose.on(() => {
mp.gui.chat.activate(true);
globalData.InMenu = false; globalData.InMenu = false;
}) })
}); });

View File

@@ -623,14 +623,12 @@ namespace ReallifeGamemode.Server.Managers
} }
else else
{ {
if (amount > 0 && amount < 5000) if (amount > 0 && amount <= 5000)
{ {
player.SendNotification($"~w~Du hast ~y~{targetname} ~w~ ${amount} gegeben."); player.SendNotification($"~w~Du hast ~y~{targetname} ~w~ ${amount} gegeben.");
target.SendNotification($"~w~ Du hast von ~y~{playername} ~w~ ${amount}$ erhalten.", true); target.SendNotification($"~w~ Du hast von ~y~{playername} ~w~ ${amount} erhalten.", true);
target.SetData<int>("pay_amount", amount); target.SetData<int>("pay_amount", amount);
player.SendChatMessage("hallo debug player");
target.SendChatMessage("hallo debug target");
using (var dbContext = new DatabaseContext()) using (var dbContext = new DatabaseContext())
{ {
target.GetUser(dbContext).Handmoney += amount; target.GetUser(dbContext).Handmoney += amount;