[SOLVED] [C#] NativeUI menu not showing

Hi,

I’m trying to add a menu using NativeUI. What I did was :slight_smile:
I added the nativeui.net.dll file in my script folder, added it in the resource.lua in the right order.
Compiled the menuexample.cs (found on GitHub) in VS2017 with no error. The menuexample.net.dll appears in my script folder.
Added the folder name in my .yml
Restarted my server with a cache wipe before
Pressing the key : no menu, no error in the console
Please, what am I missing here ?

Thanks

Here is a code that I’ve made to try but nothing appears :


using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using CitizenFX.Core;
using CitizenFX.Core.Native;
using CitizenFX.Core.UI;
using NativeUI;

namespace learner
{

    public class learner : BaseScript
    {

        MenuPool modMenuPool;
        UIMenu mainMenu;
        public learner()
        {
            modMenuPool = new MenuPool();
            mainMenu = new UIMenu("Mod Menu", "OPTIONS");

            modMenuPool.Add(mainMenu);


            Tick += new Func<Task>(async delegate
                {
                    await Task.FromResult(0);

                    modMenuPool.ProcessMenus();
                    if (Game.IsControlJustReleased(0, Control.VehicleHorn))
                    {
                        mainMenu.Visible = !mainMenu.Visible;
                    }
                });
        }

    };

}

The problem was the following :

I did not compile the NativeUI project that I found on Github but instead I used the nativeUI.dll found here : http://gtaforums.com/topic/809284-net-nativeui/
Therefore, NativeUI.net.dll couldnt be loaded.