try fix
This commit is contained in:
@@ -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;
|
||||
})
|
||||
});
|
||||
|
||||
@@ -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<int>("pay_amount", amount);
|
||||
|
||||
player.SendChatMessage("hallo debug player");
|
||||
target.SendChatMessage("hallo debug target");
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
target.GetUser(dbContext).Handmoney += amount;
|
||||
|
||||
Reference in New Issue
Block a user