28 lines
828 B
TypeScript
28 lines
828 B
TypeScript
import * as NativeUI from '../../libs/NativeUI';
|
|
|
|
const Menu = NativeUI.Menu;
|
|
const MenuItem = NativeUI.UIMenuItem;
|
|
const MenuListItem = NativeUI.UIMenuListItem;
|
|
const MenuCheckboxItem = NativeUI.UIMenuCheckboxItem;
|
|
const BadgeStyle = NativeUI.BadgeStyle;
|
|
const Point = NativeUI.Point;
|
|
const ItemsCollection = NativeUI.ItemsCollection;
|
|
const Color = NativeUI.Color;
|
|
|
|
export default function ammunation(globalData: IGlobalData) {
|
|
|
|
var screenRes = mp.game.graphics.getScreenResolution(0, 0);
|
|
|
|
class Weapon {
|
|
|
|
}
|
|
|
|
mp.events.add("AmmunationShop:LoadNativeUI", (weapons: Weapon[]) => {
|
|
mp.gui.chat.activate(false);
|
|
globalData.InMenu = true;
|
|
mp.gui.chat.push(weapons.toString());
|
|
|
|
var ammunationMenu = new Menu("Ammunation", "", new Point(0, screenRes.y / 3), null, null);
|
|
|
|
});
|
|
}; |