Library written in typescript to create menus on FiveM
Support LUA version

Example

RegisterCommand('testMenu', function() 
    exports.coraui:CreateMenu({
        name="Feff",
        subtitle="Principal",
        glare = true,
        buttons = {
            { name = "Submenu uruspu", onClick = function()
                exports.coraui:CreateSubmenu("uruspu")
            end},

            { name = "Submenu sujuc", onClick = function()
                exports.coraui:CreateSubmenu("sujuc")
            end},

            { name = "Checkbox", checkbox = function(bool)
                print(bool)
            end},

            { name = "Rightlabel", rightText = "~g~260 000 $", onClick = function()

            end},

            { name = "Slider", onSlide = function(z)
                print("Button clicked  " .. z)
            end, slider = {"ananasikim", "sikimiyalla", "sitch"}},

            { name = "Close", onClick = function()
                exports.coraui:CloseMenu()
            end}
        },

        submenus = {
            ["uruspu"] = {
                name = "uruspu",
                subtitle="Secondaire 1",
                glare = true,
                buttons = {
                    { name = "uruspu1" },
                    { name = "uruspu2" }
                }
            },

            ["sujuc"] = {
                name = "sujuc",
                subtitle="Secondaire 2",
                glare = true,
                buttons = {
                    { name = "sujuc1" },
                    { name = "sujuc2" }
                }
            }
        }
    }) 
end)

Requirements

  • coraui (not rename/delete)



Looking for paid scripts? Click here