From e8cb2f3f29f7a158e4783c5e73b9884ce6fc63c7 Mon Sep 17 00:00:00 2001 From: hydrant Date: Fri, 2 Apr 2021 22:21:15 +0200 Subject: [PATCH] SHOWTUNINGMENU KOSTENLOS --- ReallifeGamemode.Client/Tuning/main.ts | 4 ++-- ReallifeGamemode.Server/Commands/AdminCommands.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ReallifeGamemode.Client/Tuning/main.ts b/ReallifeGamemode.Client/Tuning/main.ts index f8e586a6..ec94766a 100644 --- a/ReallifeGamemode.Client/Tuning/main.ts +++ b/ReallifeGamemode.Client/Tuning/main.ts @@ -165,7 +165,7 @@ export default function tuning(globalData: IGlobalData) { var currentActiveModItem = new Array(); var currentSelectedItem: VehicleModMenuItem = null; - mp.events.add("showTuningMenu", () => { + mp.events.add("showTuningMenu", (noMoney) => { mp.events.call("hideTuningInfo", false); mp.gui.chat.show(false); @@ -226,7 +226,7 @@ export default function tuning(globalData: IGlobalData) { } } - var price = getModSlotPrice(modType); + var price = noMoney? 0 : getModSlotPrice(modType); if (mod === null) { diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 71fbd171..b081fd7f 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -2054,7 +2054,7 @@ namespace ReallifeGamemode.Server.Commands } else { - player.TriggerEvent("showTuningMenu"); + player.TriggerEvent("showTuningMenu", true); } }