Need some help with NativeUILua-Reloaded

Hello everyone,
I’ve been trying to use NativeUILua-Reloaded, but I didn’t have much luck yet. I have used the normal NativeUILua many times without any issues. But I am comletely new to the Reloaded version. That’s why I need some help.

I have the NativeUI-Reloaded resource starting before my menu resource, and both resources are starting without any issues in the server console.

But when I press the “E” button in the game, no menu opens.

Here’s the code that I have written (client.lua):

_menuPool = NativeUI.CreatePool()
mainMenu = NativeUI.CreateMenu("Testing menu", "Test description")
_menuPool:Add(mainMenu)

-- a basic menu item
function FirstOption(menu)
    local Description = "Item description"
    local Item = NativeUI.CreateItem("Test item", Description)
    menu:AddItem(Item)
    menu.OnItemSelect = function(menu, item)
        if item == Item then
            -- some action here
        end
    end
end

FirstOption(mainMenu)
_menuPool:RefreshIndex()

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        _menuPool:ProcessMenus()

        if IsControlJustPressed(1, 51) then -- e button
            mainMenu:Visible(not mainMenu:Visible())
        end
    end
end)

And here is the __resource.lua file:

resource_manifest_version '05cfa83c-a124-4cfa-a768-c24a5811d8f9'

client_script {
    "@NativeUILua-Reloaded/Wrapper/Utility.lua",

    "@NativeUILua-Reloaded/UIElements/UIVisual.lua",
    "@NativeUILua-Reloaded/UIElements/UIResRectangle.lua",
    "@NativeUILua-Reloaded/UIElements/UIResText.lua",
    "@NativeUILua-Reloaded/UIElements/Sprite.lua",

    "@NativeUILua-Reloaded/UIMenu/elements/Badge.lua",
    "@NativeUILua-Reloaded/UIMenu/elements/Colours.lua",
    "@NativeUILua-Reloaded/UIMenu/elements/ColoursPanel.lua",
    "@NativeUILua-Reloaded/UIMenu/elements/StringMeasurer.lua",

    "@NativeUILua-Reloaded/UIMenu/items/UIMenuItem.lua",
    "@NativeUILua-Reloaded/UIMenu/items/UIMenuCheckboxItem.lua",
    "@NativeUILua-Reloaded/UIMenu/items/UIMenuListItem.lua",
    "@NativeUILua-Reloaded/UIMenu/items/UIMenuSliderItem.lua",
    "@NativeUILua-Reloaded/UIMenu/items/UIMenuSliderHeritageItem.lua",
    "@NativeUILua-Reloaded/UIMenu/items/UIMenuColouredItem.lua",

    "@NativeUILua-Reloaded/UIMenu/items/UIMenuProgressItem.lua",
    "@NativeUILua-Reloaded/UIMenu/items/UIMenuSliderProgressItem.lua",

    "@NativeUILua-Reloaded/UIMenu/windows/UIMenuHeritageWindow.lua",

    "@NativeUILua-Reloaded/UIMenu/panels/UIMenuGridPanel.lua",
    "@NativeUILua-Reloaded/UIMenu/panels/UIMenuHorizontalOneLineGridPanel.lua",
    "@NativeUILua-Reloaded/UIMenu/panels/UIMenuVerticalOneLineGridPanel.lua",
    "@NativeUILua-Reloaded/UIMenu/panels/UIMenuColourPanel.lua",
    "@NativeUILua-Reloaded/UIMenu/panels/UIMenuPercentagePanel.lua",
    "@NativeUILua-Reloaded/UIMenu/panels/UIMenuStatisticsPanel.lua",

    "@NativeUILua-Reloaded/UIMenu/UIMenu.lua",
    "@NativeUILua-Reloaded/UIMenu/MenuPool.lua",

    "@NativeUILua_Reloaded/NativeUI.lua",
    
    "client.lua"
}

I’ll be thankful for any kind of help, I’ve been trying to fix the issue for hours now, but I still haven’t had much luck.