This commit is contained in:
Michael
2020-06-02 16:24:28 +02:00
parent 254e7b0362
commit 98a2f35613
2 changed files with 0 additions and 4 deletions

View File

@@ -168,7 +168,6 @@ export default function (globalData: IGlobalData) {
}); });
menu.MenuClose.on(() => { menu.MenuClose.on(() => {
mp.gui.chat.activate(true);
globalData.InMenu = false; globalData.InMenu = false;
}) })
}); });

View File

@@ -627,7 +627,6 @@ namespace ReallifeGamemode.Server.Managers
{ {
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);
using (var dbContext = new DatabaseContext()) using (var dbContext = new DatabaseContext())
{ {
@@ -635,8 +634,6 @@ namespace ReallifeGamemode.Server.Managers
player.GetUser(dbContext).Handmoney -= amount; player.GetUser(dbContext).Handmoney -= amount;
dbContext.SaveChanges(); dbContext.SaveChanges();
} }
target.ResetData("pay_amount");
target.ResetData("pay_player");
} }
else else
{ {