[HELP] [C#] NativeUI - Menu not showing up

Hey,
I’m trying to create a menu for the first time by using NativeUI on C#. Here’s my code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Windows.Forms;
using NativeUI;
using GTA;
using GTA.Native;
using GTA.Math;
namespace CharacterMenu
{
    public class CharacterMenu : Script
    {
        MenuPool menupool;
        UIMenu cmenu;
        public CharacterMenu()
        {
            menupool = new MenuPool();
            cmenu = new UIMenu("Character Management", "Manage your characters");
            menupool.Add(cmenu);
            menupool.RefreshIndex();
            Tick += onTick;
            KeyDown += onKeyDown;
        }
         void onTick(object sender, EventArgs e)
        {
            if (menupool != null)
                menupool.ProcessMenus();
        }
         void onKeyDown(object sender, KeyEventArgs e)
        {
            if(e.KeyCode == Keys.M)
            {
                cmenu.Visible = true;
            }
        }


    }
}

and for some reason the menu is not showing up…
My resource lua file contains only this:
client_script ‘CharacterMenu.net.dll’
(Im a starter :blush:)

Thank you.

This looks like a ScriptHookVDotNet script, you can’t use those in FiveM you need to implement BaseScript and the CitizenFX.Core.dll libs

https://docs.fivem.net/scripting-manual/runtimes/csharp/