From 254e7b0362174321cc01fe73278a39aaef068b5d Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 2 Jun 2020 15:14:19 +0200 Subject: [PATCH] try fix --- ReallifeGamemode.Client/Interaction/interactionmenu.ts | 2 ++ ReallifeGamemode.Server/Managers/InteractionManager.cs | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ReallifeGamemode.Client/Interaction/interactionmenu.ts b/ReallifeGamemode.Client/Interaction/interactionmenu.ts index 0cb6993e..9cd591d6 100644 --- a/ReallifeGamemode.Client/Interaction/interactionmenu.ts +++ b/ReallifeGamemode.Client/Interaction/interactionmenu.ts @@ -162,11 +162,13 @@ export default function (globalData: IGlobalData) { input.getValue(name => { mp.events.call("CLIENT:InteractionMenu_Pay_Name", name); mp.gui.cursor.show(false, false); + menu.Close(true); }); } }); menu.MenuClose.on(() => { + mp.gui.chat.activate(true); globalData.InMenu = false; }) }); diff --git a/ReallifeGamemode.Server/Managers/InteractionManager.cs b/ReallifeGamemode.Server/Managers/InteractionManager.cs index f1379fe5..dc1253c9 100644 --- a/ReallifeGamemode.Server/Managers/InteractionManager.cs +++ b/ReallifeGamemode.Server/Managers/InteractionManager.cs @@ -623,14 +623,12 @@ namespace ReallifeGamemode.Server.Managers } else { - if (amount > 0 && amount < 5000) + if (amount > 0 && amount <= 5000) { 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("pay_amount", amount); - player.SendChatMessage("hallo debug player"); - target.SendChatMessage("hallo debug target"); using (var dbContext = new DatabaseContext()) { target.GetUser(dbContext).Handmoney += amount;