For parameters, the pages are type specific, some items can/can't be used by other types the other bullet items can be used by all

DATA

Parameters

Example

(client)

TriggerEvent("koth:menu", {
    title = "Test menu",
    description = "Description for the menu",
    key = "F1",
    items = {
        {
            label = "Ketchup?",
            description = "Do you want ketchup with that?",

            type = "checked",
            active = true,

            important = true,

            change = function(item, newValue, oldValue)
                if newValue == true then
                    TriggerEvent("koth:notification", "~g~You do want ketchup")
                else
                    TriggerEvent("koth:notification", "~r~You don't want ketchup")
                end
            end
        },
        {
            label = "Distance",
            description = "How far are you away?",

            type = "slider",
            min = 0,
            max = 10,

            change = "koth:checkDistance" -- This would trigger a server event
        },
        {
            label = "Cheese amount",
            description = "How much cheese do you want",

            type = "options",
            values = {
                { label = 'Little', value = 1, description = 'Just a sprinkle'},
                { label = 'Something', value = 2, description = 'Not too much'},
                { label = 'Normal', value = 3, description = 'Like the rest'},
                { label = 'BIG', value = 4, description = 'I LOVE CHEESE'},
            },

            change = function(item, newValue, oldValue)
                if newValue == 1 then
                    TriggerEvent("koth:notification", "Just a little ey")
                elseif newValue == 2 then
                    TriggerEvent("koth:notification", "Isn't that too much?")
                elseif newValue == 3 then
                    TriggerEvent("koth:notification", "Don't go ham now")
                elseif newValue == 4 then
                    TriggerEvent("koth:notification", "Ok big boy")
                else
                    TriggerEvent("koth:notification", "That's out of this world")
                end
            end
        },
        {
            label = "Sub Menu",
            description = "Open the special submenu",

            type = "button",

            submenu = {
                title = "Sub Menu",
                description = "For smaller items",
                items = {
                    {
                        label = "Pat pat",
                        description = "Do you want pets?",

                        type = "checked",

                        change = function(item, newValue, oldValue)
                            if newValue == true then
                                TriggerEvent("koth:notification", "~g~Good job")
                            else
                                TriggerEvent("koth:notification", "~r~Or not")
                            end
                        end
                    },
                    {
                        label = "Disabled",
                        description = "you can't access this",

                        type = "checked"
                    }
                }
            },

            change = function(item, newValue, oldValue)
                if newValue == true then
                    TriggerEvent("koth:notification", "wait....")
                else
                    TriggerEvent("koth:notification", "how?")
                end
            end
        },
        {
            label = "Disabled",
            description = "you can't access this",

            type = "checked",
            disabled = true
        },
        {
            label = "You sure?",
            description = "Do you really want it?",

            type = "confirm",
            important = true,

            change = function(item, newValue, oldValue)
                if newValue == true then
                    TriggerEvent("koth:notification", "If you say so")
                else
                    TriggerEvent("koth:notification", "I knew it")
                end
            end
        },
        {
            label = "Order",
            description = "Do you want to order? ~r~CLOSE MENU",

            type = "button",

            select = function(item)
                TriggerEvent("koth:notification", "On my way")
                TriggerEvent("koth:closeMenu", item:GetParentMenu())
            end
        },
    }
})

(client)

TriggerEvent("koth:menu", {
    title = "Test menu",
    description = "Description for the menu",
    key = "F1",
    items = {
        {
            label = "Ketchup?",
            description = "Do you want ketchup with that?",

            type = "checked",
            active = true,

            important = true,

            change = function(menu, item, newValue, oldValue)
                if newValue == true then
                    TriggerEvent("koth:notification", "~g~You do want ketchup")
                else
                    TriggerEvent("koth:notification", "~r~You don't want ketchup")
                end
            end
        },
        {
            label = "Distance",
            description = "How far are you away?",

            type = "slider",
            min = 0,
            max = 10,

            change = "koth:checkDistance" -- This would trigger a server event
        },
        {
            label = "Cheese amount",
            description = "How much cheese do you want",

            type = "options",
            values = {
                { label = 'Little', value = 1, description = 'Just a sprinkle'},
                { label = 'Something', value = 2, description = 'Not too much'},
                { label = 'Normal', value = 3, description = 'Like the rest'},
                { label = 'BIG', value = 4, description = 'I LOVE CHEESE'},
            },

            change = function(menu, item, newValue, oldValue)
                if newValue == 1 then
                    TriggerEvent("koth:notification", "Just a little ey")
                elseif newValue == 2 then
                    TriggerEvent("koth:notification", "Isn't that too much?")
                elseif newValue == 3 then
                    TriggerEvent("koth:notification", "Don't go ham now")
                elseif newValue == 4 then
                    TriggerEvent("koth:notification", "Ok big boy")
                else
                    TriggerEvent("koth:notification", "That's out of this world")
                end
            end
        },
        {
            label = "Sub Menu",
            description = "Open the special submenu",

            type = "button",

            submenu = {
                title = "Sub Menu",
                description = "For smaller items",
                items = {
                    {
                        label = "Pat pat",
                        description = "Do you want pets?",

                        type = "checked",

                        change = function(item, newValue, oldValue)
                            if newValue == true then
                                TriggerEvent("koth:notification", "~g~Good job")
                            else
                                TriggerEvent("koth:notification", "~r~Or not")
                            end
                        end
                    },
                    {
                        label = "Disabled",
                        description = "you can't access this",

                        type = "checked"
                    }
                }
            },

            change = function(menu, item, newValue, oldValue)
                if newValue == true then
                    TriggerEvent("koth:notification", "wait....")
                else
                    TriggerEvent("koth:notification", "how?")
                end
            end
        },
        {
            label = "Disabled",
            description = "you can't access this",

            type = "checked",
            disabled = true
        },
        {
            label = "You sure?",
            description = "Do you really want it?",

            type = "confirm",
            important = true,

            change = function(menu, item, newValue, oldValue)
                if newValue == true then
                    TriggerEvent("koth:notification", "If you say so")
                else
                    TriggerEvent("koth:notification", "I knew it")
                end
            end
        },
        {
            label = "Order",
            description = "Do you want to order? ~r~CLOSE MENU",

            type = "button",

            select = function(menu, item)
                TriggerEvent("koth:notification", "On my way")
                TriggerEvent("koth:closeMenu", item:GetParentMenu())
            end
        },
    }
})