Files
2021-05-31 19:20:50 +02:00

17 lines
502 B
TypeScript

import { GlobalData } from "..";
export default function bigmap() {
var bigMapActive = false;
mp.game.ui.setRadarZoom(0.0);
mp.game.ui.setRadarBigmapEnabled(false, false);
mp.events.add("render", () => {
mp.game.controls.disableControlAction(0, 48, true);
if (mp.game.controls.isDisabledControlJustPressed(0, 48) && !GlobalData.InChat) {
bigMapActive = !bigMapActive;
mp.game.ui.setRadarBigmapEnabled(bigMapActive, false);
}
});
}