fixed char creator duplicate menus
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
const localPlayer = mp.players.local;
|
const localPlayer = mp.players.local;
|
||||||
|
|
||||||
export default function charCreator() {
|
export default function charCreator(globalData: GlobalData) {
|
||||||
|
|
||||||
var creatorHairMenu;
|
var creatorHairMenu;
|
||||||
|
|
||||||
@@ -325,6 +325,7 @@ export default function charCreator() {
|
|||||||
|
|
||||||
creatorMainMenu.MenuClose.on(() => {
|
creatorMainMenu.MenuClose.on(() => {
|
||||||
mp.events.callRemote("creator_Leave");
|
mp.events.callRemote("creator_Leave");
|
||||||
|
globalData.InMenu = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
creatorMainMenu.Visible = false;
|
creatorMainMenu.Visible = false;
|
||||||
@@ -552,6 +553,8 @@ export default function charCreator() {
|
|||||||
creatorCamera.pointAtCoord(creatorCoords.cameraLookAt);
|
creatorCamera.pointAtCoord(creatorCoords.cameraLookAt);
|
||||||
creatorCamera.setActive(true);
|
creatorCamera.setActive(true);
|
||||||
|
|
||||||
|
globalData.InMenu = true;
|
||||||
|
|
||||||
creatorMainMenu.Visible = true;
|
creatorMainMenu.Visible = true;
|
||||||
mp.gui.chat.show(false);
|
mp.gui.chat.show(false);
|
||||||
mp.game.ui.displayRadar(false);
|
mp.game.ui.displayRadar(false);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import cardealer from './Business/cardealer';
|
|||||||
cardealer(globalData);
|
cardealer(globalData);
|
||||||
|
|
||||||
import charCreator from './CharCreator/main';
|
import charCreator from './CharCreator/main';
|
||||||
charCreator();
|
charCreator(globalData);
|
||||||
|
|
||||||
import coloredHeadLights from './coloredhlights/index';
|
import coloredHeadLights from './coloredhlights/index';
|
||||||
coloredHeadLights();
|
coloredHeadLights();
|
||||||
|
|||||||
Reference in New Issue
Block a user