23 lines
758 B
TypeScript
23 lines
758 B
TypeScript
import { GlobalData } from "..";
|
|
|
|
export default function bigmap() {
|
|
let bigMapEnabled = 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) {
|
|
if (!bigMapEnabled) {
|
|
mp.game.ui.setRadarBigmapEnabled(true, false);
|
|
mp.game.ui.setRadarZoom(1.0);
|
|
bigMapEnabled = true;
|
|
} else {
|
|
mp.game.ui.setRadarBigmapEnabled(false, false);
|
|
mp.game.ui.setRadarZoom(0.0);
|
|
bigMapEnabled = false;
|
|
}
|
|
}
|
|
});
|
|
} |