dont show hand money when hide gui
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import moneyFormat from '../moneyformat';
|
import moneyFormat from '../moneyformat';
|
||||||
|
|
||||||
export default function handMoney() {
|
export default function handMoney(globalData: GlobalData) {
|
||||||
var currentMoney = null;
|
var currentMoney = null;
|
||||||
var showMoneyChange = null;
|
var showMoneyChange = null;
|
||||||
var difference;
|
var difference;
|
||||||
@@ -14,6 +14,7 @@ export default function handMoney() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
mp.events.add("render", () => {
|
mp.events.add("render", () => {
|
||||||
|
if (globalData.HideGui) return;
|
||||||
if (currentMoney != null) {
|
if (currentMoney != null) {
|
||||||
var numberFormat = moneyFormat(Math.abs(currentMoney));
|
var numberFormat = moneyFormat(Math.abs(currentMoney));
|
||||||
if (currentMoney >= 0) {
|
if (currentMoney >= 0) {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ adminSpeed();
|
|||||||
//voice(globalData);
|
//voice(globalData);
|
||||||
|
|
||||||
import handMoney from './Gui/handmoney'
|
import handMoney from './Gui/handmoney'
|
||||||
handMoney();
|
handMoney(globalData);
|
||||||
|
|
||||||
import business from './Business/main';
|
import business from './Business/main';
|
||||||
business(globalData);
|
business(globalData);
|
||||||
|
|||||||
Reference in New Issue
Block a user