public static void addMenu() {
        JSScriptInfo.RemoveAllSriptsFromMenu();
        unionRoot = new MenuElement(null,
                new String[]{CustomMenu.menu_prefix}, resUnion, "Union",
                "Union functions", 'U', "union_root");
        union_menu.setRootElement(unionRoot);
		/*Здесть насрал Керриган*/
        buddyElement = new MenuElement(null, new String[]{CustomMenu.menu_prefix, "buddy_listener"}, buddyRes,
                "Buddy window", "Toggles buddy window", 'd', "buddybtn");
        buddyElement.SetListener(new MenuElemetUseListener(null) {
            public void use(int button) {
                if (button == 1) {
                    BuddyWnd.instance.visible = !BuddyWnd.instance.visible;
                }
            }
        });
        equipElement = new MenuElement(null, new String[]{CustomMenu.menu_prefix, "equip_listener"}, equipRes,
                "Equipment window", "Toggles equipment window", 'E', "equipbtn");
        equipElement.SetListener(new MenuElemetUseListener(null) {
            public void use(int button) {
                if (button == 1) {
                    UI.instance.root.wdgmsg("gk", 5);
                }
            }
        });
        charElement = new MenuElement(null, new String[]{CustomMenu.menu_prefix, "char_listener"}, charRes,
                "Character window", "Toggles character sheet window", 'h', "charbtn");
        charElement.SetListener(new MenuElemetUseListener(null) {
            public void use(int button) {
                if (button == 1) {
                    if (UI.instance.wnd_char != null) {
                        UI.instance.wnd_char.toggle();
                    }
                }
            }
        });
        optElement = new MenuElement(null, new String[]{CustomMenu.menu_prefix, "opt_listener"}, optRes,
                "Options window", "Toggles options window", 'O', "optbtn");
        optElement.SetListener(new MenuElemetUseListener(null) {
            public void use(int button) {
                if (button == 1) {
                    UI.instance.slenhud.toggleopts();
                }
            }
        });
        invElement = new MenuElement(null, new String[]{CustomMenu.menu_prefix, "inv_listener"}, invRes,
                "Inventory window", "Toggles inventory window", 'I', "invbtn");
        invElement.SetListener(new MenuElemetUseListener(null) {
            public void use(int button) {
                if (button == 1) {
                    UI.instance.root.wdgmsg("gk", 9);
                }
            }
        });

        scriptRootNew = addResource("script_start", "Run Scripts",
                "You can find all availiable scripts in this menu", 'R',
                resScript2, unionRoot, new MenuElemetUseListener(null) {
            public void use(int button) {
                if (button == 1) {
                    JSScriptInfo.LoadAllSripts();
                    JSScriptInfo.LoadAllSriptsToMenu();
                }
            }
        });

        scriptRootRem = addResource("script_stop", "Stop Scripts",
                "You can stop scripts from this menu", 'S', resScript1,
                unionRoot, null);

        addResource("toggle_draw_pf_map", "Toggle PF Map", "Do it lol!", 'T',
                Resource.load("paginae/union/scripts/script2"), unionRoot,
                new MenuElemetUseListener(null) {
                    public void use(int button) {
                        UI.instance.mapview.toggle_draw_pf();
                    }
                });

        addResource("stop_all_scripts", "Stop all scripts",
                "Stops all working scripts", 'T',
                Resource.load("paginae/union/scripts/script5"), unionRoot,
                new MenuElemetUseListener(null) {
                    public void use(int button) {
                        JSBot.StopAllScripts();
                    }
                });

        addResource("hide_all_objects", "Hide ALL Objects", "Do it lol!", 'T',
                Resource.load("paginae/union/scripts/script2"), unionRoot,
                new MenuElemetUseListener(null) {
                    public void use(int button) {
                        Config.hide_all = !Config.hide_all;
                    }
                });

        addResource("stop_self_moving", "Stop Movement",
                "Stops movement immidietly", 'S',
                Resource.load("paginae/union/scripts/script2"), unionRoot,
                new MenuElemetUseListener(null) {
                    public void use(int button) {
                        _add_stop_movement();
                    }
                });

        addResource("replace_player_models", "Replace Models",
                "Stops movement immidietly", 'R',
                Resource.load("paginae/union/scripts/script2"), unionRoot,
                new MenuElemetUseListener(null) {
                    public void use(int button) {
                        replacePlayers();
                    }
                });

        addResource("print_global_coords", "Print Global Coords",
                "Print current globalmap coords", 'P',
                Resource.load("paginae/union/scripts/script2"), unionRoot,
                new MenuElemetUseListener(null) {
                    public void use(int button) {
                        Coord c = getCurrentRealCoords();
                        if (c != null)
                            UI.instance.slenhud
                                    .error("Current global coords: ("
                                            + String.valueOf(c.x / 100) + ", "
                                            + String.valueOf(c.y / 100) + ")");
                        else
                            UI.instance.slenhud.error("Coords not handled");
                    }
                });
        addResource("auto_aggro_redds", "Agro Enemies", "Aggroes all red points on minimap", 'a', resScript2, unionRoot, new MenuElemetUseListener(null) {
            @Override
            public void use(int button) {
                APXUtils.argoReds();
            }
        });
        JSScriptInfo.LoadAllSriptsToMenu();
    }