From e55510871e3fc414dc1d48757a6a2585b84dda17 Mon Sep 17 00:00:00 2001 From: hydrant Date: Tue, 16 Jul 2019 21:59:24 +0200 Subject: [PATCH] dont show hand money when hide gui --- ReallifeGamemode.Client/Gui/handmoney.ts | 3 ++- ReallifeGamemode.Client/index.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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);