diff --git a/ReallifeGamemode.Client/Gui/handmoney.ts b/ReallifeGamemode.Client/Gui/handmoney.ts index 4793e49c..4971a31e 100644 --- a/ReallifeGamemode.Client/Gui/handmoney.ts +++ b/ReallifeGamemode.Client/Gui/handmoney.ts @@ -1,6 +1,6 @@ import moneyFormat from '../moneyformat'; -export default function handMoney() { +export default function handMoney(globalData: GlobalData) { var currentMoney = null; var showMoneyChange = null; var difference; @@ -14,6 +14,7 @@ export default function handMoney() { }); mp.events.add("render", () => { + if (globalData.HideGui) return; if (currentMoney != null) { var numberFormat = moneyFormat(Math.abs(currentMoney)); if (currentMoney >= 0) { diff --git a/ReallifeGamemode.Client/index.ts b/ReallifeGamemode.Client/index.ts index 3801be27..f22c8004 100644 --- a/ReallifeGamemode.Client/index.ts +++ b/ReallifeGamemode.Client/index.ts @@ -47,7 +47,7 @@ adminSpeed(); //voice(globalData); import handMoney from './Gui/handmoney' -handMoney(); +handMoney(globalData); import business from './Business/main'; business(globalData);