AddCheckbox
This compatibility method behaves like CreateCheckbox. Creates a checkbox control with an optional saved flag. It is kept so scripts written with the older AddCheckbox name continue to work.
AddCheckbox
Compatibility alias
AddCheckbox is an alternate name for CreateCheckbox. New code can use CreateCheckbox.
What it does
This compatibility method behaves like CreateCheckbox. Creates a checkbox control with an optional saved flag. It is kept so scripts written with the older AddCheckbox name continue to work.
When to use it
Use it for a simple boolean choice where a checkmark is clearer than a switch. Prefer CreateCheckbox in new code so the method name matches the current API.
ElementFunction:AddCheckbox(CheckboxConfig)
local Result = Section:AddCheckbox({
Name = "Example",
Callback = function(value)
print(value)
end,
})Behavior and return value
This alias forwards to CreateCheckbox, so its options, callbacks, and returned value follow the canonical method.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.
Related reference
AddChat
This compatibility method behaves like AddGlobalChat. Adds a remote global-chat panel with rules, cooldowns, reporting, and conversation persistence. It is kept so scripts written with the older AddChat name continue to work.
AddCommandPlugins
This compatibility method behaves like AddPlugins. Adds a plugin manager for local, inline, prebuilt, or approved remote plugins. It is kept so scripts written with the older AddCommandPlugins name continue to work.