Client Menus
OpenMenu
Parameter
Required
Type
Description
{ -- Settings
namespace = '', -- String, required
title = '', -- String
subtitle = '', -- String
searchable = false, -- Boolean, only available for forms
form = false, -- Boolean, enables direct input including mouse
disableFormButtons = false, -- Boolean, disables Confirm/Cancel buttons on the form. Will always return "complete" as false within the close handler
}{
type = '', -- String, defaults to button (text, checkbox, toggle, slider, select, button, linebreak, subtitle, number). 'select', 'number' and 'text' automatically enable the form option for the menu
name = '', -- String, required. Refernce for any return event. Not required for linebreak or subtitle
label = '', -- String, required. Display label. Not required for linebreak
value = nil, -- Anything, sets default value if applicable
disabled = false, -- Boolean
required = false, -- Boolean, force validation on input
regex = '', -- String, regex string for validating input. You can also pass the term `json` in order to activate JSON validation
validationMessage = '', -- String, required if regex is in use. Set the message to display to the end user
-- Subtitle
size = nil, -- Number, font size in VH units
position = nil, -- String, any applicable text-align variables I.e. left, right, center
margin = nil, -- Number, margin to apply in VH units. Can be negative to reduce the spacing between elements (I.e. -1)
-- Text
multiline = false, -- Boolean, used to change from a single line input to a text box (type of 'text' only)
-- Button/Number
icon = '', -- String (type of 'button' or 'number' only). Can change to any FontAwesome (including Pro) icons. Use full reference. I.e. `fad fa-heart`
description = '', -- String (type of 'button' or 'number' only)
-- Select
options = { -- Array of options (type of 'select' only)
{
value = '', -- String, required
label = '', -- String, falls back to value if not specified
}
},
multiselect = false, -- Boolean, used to allow multiple selections
-- Slider
step = 1, -- Number (type of 'slider' only). Used to specify the jump step of the slider
min = 0, -- Number (type of 'slider' or 'number' only). The minimum value of the slider
max = 100, -- Number (type of 'slider' or 'number' only). The maxmimum value of the slider
}UpdateMenuElement
RemoveMenuElement
StartSideMenuUi
Parameter
Required
Type
Description
StopSideMenuUi
RegisterUiHandler
CreateSideMenuElement
UpdateSideMenuElement
DeleteSideMenuElement
UpdateSideMenuCategory
SetSideMenuTab
Last updated