rock-mod
Version:
Rock-Mod is a powerful framework designed for creating and managing mods for Grand Theft Auto (GTA) games.
29 lines (28 loc) • 834 B
JavaScript
import { Vector3D } from "../../../../shared/common/utils";
export class RageUiManager {
getStreetNameFromHashKey(hash) {
return mp.game.ui.getStreetNameFromHashKey(hash);
}
getLabelText(labelName) {
return mp.game.ui.getLabelText(labelName);
}
hideHudComponentThisFrame(componentIndex) {
mp.game.ui.hideHudComponentThisFrame(componentIndex);
}
displayRadar(display) {
mp.game.ui.displayRadar(display);
}
setPauseMenuActive(toggle) {
mp.game.ui.setPauseMenuActive(toggle);
}
setWaypoint(x, y) {
mp.game.ui.setNewWaypoint(x, y);
}
deleteWaypoint() {
mp.game.ui.deleteWaypoint();
}
getBlipInfoIdCoord(blip) {
const { x, y, z } = mp.game.ui.getBlipInfoIdCoord(blip);
return new Vector3D(x, y, z);
}
}