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); } }