У меня проблема с меню мод Gta v, я получаю эту ошибку, игра работает нормально, но мое меню мод не работает:
at line 11: The type or namespace name 'NativeUI' was not found (missing a 'using' directive or assembly reference?)
at line 17: The type or namespace name 'MenuPool' was not found (missing a 'using' directive or assembly reference?)
at line 18: The type or namespace name 'UIMenu' was not found (missing a 'using' directive or assembly reference?)
at line 20: The type or namespace name 'UIMenuItem' was not found (missing a 'using' directive or assembly reference?)
at line 37: The type or namespace name 'UIMenu' was not found (missing a 'using' directive or assembly reference?)
at line 37: The type or namespace name 'UIMenuItem' was not found (missing a 'using' directive or assembly reference?)
Я не знаю, что здесь делать, код, как вы можете видеть, я ссылался на все библиотеки GTA, а также на библиотеку NaitiveUI:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing;
using GTA;
using GTA.Math;
using GTA.Native;
using NativeUI;
namespace GtaMod
{
public class GalaxyMenu : Script
{
MenuPool modMenuPool;
UIMenu mainMenu;
UIMenuItem SuperSwim;
public GalaxyMenu()
{
Tick += onTick;
KeyDown += onKeyDown;
modMenuPool = new MenuPool();
mainMenu = new UIMenu("Galaxy Menu", "SELECT AN OPTION");
modMenuPool.Add(mainMenu);
SuperSwim = new UIMenuItem("Super Swim");
mainMenu.AddItem(SuperSwim);
mainMenu.OnItemSelect += onMainMenuSelectItem;
}
void onMainMenuSelectItem(UIMenu sender, UIMenuItem item, int index)
{
if (item == SuperSwim)
{
Game.Player.SetSwimSpeedMultThisFrame(10000);
}
}
void onTick(object sender, EventArgs e)
{
if (modMenuPool != null)
{
modMenuPool.ProcessMenus();
}
}
void onKeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F9 && !modMenuPool.IsAnyMenuOpen())
{
mainMenu.Visible = !mainMenu.Visible;
}
}
}
}
Заполнить текст, потому что stackoverflow потрясен, я больше не могу писать в свое описание