dont show hand money when hide gui

This commit is contained in:
hydrant
2019-07-16 21:59:24 +02:00
parent 279b7770c3
commit e55510871e
2 changed files with 3 additions and 2 deletions

View File

@@ -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) {

View File

@@ -47,7 +47,7 @@ adminSpeed();
//voice(globalData);
import handMoney from './Gui/handmoney'
handMoney();
handMoney(globalData);
import business from './Business/main';
business(globalData);