Ui API

Hello,
I try to find an ui api becose i’m a beginer!
So i find:- vMenu (who i understand nothing )
-menuv
-nativeUi but is now deprecated!

  • LemonUI who i found no documentation

Someone know a Ui API or Good tutorial in css js and nui ?

thanks for all!

You could check out FiveM’s default chat resource. It is written in Vue and uses NUI.
Github

WarMenu is a cool one that I use often.

critMenu and critLobby - those are mine. They are cool if you want static menus (won’t update while open.)

Thanks, i try to use WarMenu

Ok i try this :

WarMenu.CreateMenu("menu", "Menu test")
WarMenu.CreateSubMenu("menu2", "menu")

RegisterCommand("menu", function(source, args, rawCommand)
    if not WarMenu.IsAnyMenuOpened() then
        return
    end

    WarMenu.OpenMenu("menu")
    while true do
        if WarMenu.Begin("menu") then
            WarMenu.MenuButton("menu","menu2")
            WarMenu.End()
        end

    end

end, false)

But that doesn’t work ^^’

Add Citizen.Wait() in the while true loop.

Sorry,this don’t work

So remove not from line 5.

You have a working example menu in warmenu_demo.lua

Thanks all it work well !