Finalize Surgery
This commit is contained in:
@@ -560,7 +560,7 @@ export default function charCreator(globalData: IGlobalData) {
|
||||
|
||||
// EVENTS
|
||||
mp.events.add("toggleCreator", (charExists) => {
|
||||
if (creatorCamera === undefined) {
|
||||
if (!mp.cameras.exists(creatorCamera)) {
|
||||
if (charExists) {
|
||||
creatorCamera = mp.cameras.new("creatorCamera", surgeryCoords.camera, new mp.Vector3(0, 0, 0), 45);
|
||||
creatorCamera.pointAtCoord(surgeryCoords.cameraLookAt.x, surgeryCoords.cameraLookAt.y, surgeryCoords.cameraLookAt.z);
|
||||
@@ -572,6 +572,11 @@ export default function charCreator(globalData: IGlobalData) {
|
||||
creatorCamera.setActive(true);
|
||||
}
|
||||
|
||||
resetAppearanceMenu();
|
||||
resetFeaturesMenu();
|
||||
resetHairAndColorsMenu();
|
||||
resetParentsMenu();
|
||||
|
||||
globalData.InMenu = true;
|
||||
globalData.InMenu = true;
|
||||
|
||||
@@ -582,6 +587,7 @@ export default function charCreator(globalData: IGlobalData) {
|
||||
localPlayer.clearTasksImmediately();
|
||||
localPlayer.freezePosition(true);
|
||||
mp.game.cam.renderScriptCams(true, false, 0, true, false);
|
||||
applyCreatorOutfit();
|
||||
|
||||
}
|
||||
});
|
||||
@@ -601,7 +607,7 @@ export default function charCreator(globalData: IGlobalData) {
|
||||
mp.game.ui.displayHud(true);
|
||||
localPlayer.freezePosition(false);
|
||||
mp.game.cam.renderScriptCams(false, false, 0, true, false);
|
||||
creatorCamera.destroy(true);
|
||||
creatorCamera.destroy();
|
||||
globalData.InMenu = false;
|
||||
globalData.InMenu = false;
|
||||
if (isSurgery) isSurgery = false;
|
||||
|
||||
Reference in New Issue
Block a user