bigmap nicht wenn chat auf ist

This commit is contained in:
hydrant
2021-04-29 12:44:12 +02:00
parent d48022b02e
commit 5387465945

View File

@@ -1,3 +1,5 @@
import { GlobalData } from "..";
export default function bigmap() {
var bigmap = { status: 0, timer: null };
@@ -9,7 +11,7 @@ export default function bigmap() {
mp.events.add("render", () => {
mp.game.controls.disableControlAction(0, 48, true);
if (mp.game.controls.isDisabledControlJustPressed(0, 48)) {
if (mp.game.controls.isDisabledControlJustPressed(0, 48) && !GlobalData.InChat) {
if (bigmap.status === 0) {
mp.game.ui.setRadarZoom(0.0);
bigmap.status = 1;