XLQP Gen1
Elements

Input elements

Buttons, toggles, sliders, dropdowns, binds, text fields, color pickers, and other controls.

Input elements

Input elements collect user choices and call your Callback. Add them to a section, tab-box tab, panel group, or any compatible XLQP container.

Interface previews

XLQP Gen1 controls tab showing input elements
Buttons, toggles, dropdowns, sliders, and related controls in a live XLQP window.
Lower portion of the XLQP Gen1 controls tab
The remaining controls after scrolling through the elements tab.

Toggle

local Toggle = Section:AddToggle({
    Name = "Auto collect",
    Default = false,
    Callback = function(value)
        print("Auto collect:", value)
    end,
})

AddToggle supports Name, Description/Content, Default, Flag, Save, Color, Locked, Checkbox, Binded, DefaultBind, Settings, icons, and Callback. Its controller can Set, SetName, SetBind, and open settings. It can also attach action rows, dropdowns, mini-buttons, or sliders.

Button

local Button = Section:AddButton({
    Name = "Run action",
    Icon = "play",
    Callback = function()
        print("Action started")
    end,
})

Button:Press()
Button:SetLocked(false)

Use AddCooldownButton when an action must wait before it can be triggered again.

local Cooldown = Section:AddCooldownButton({
    Name = "Redeem reward",
    Description = "Available every 30 seconds.",
    ButtonText = "Redeem",
    CooldownText = "Wait…",
    Duration = 30,
    Callback = function()
        print("Redeemed")
    end,
})

Its controller provides Start, Cancel, SetDuration, IsCoolingDown, and Trigger.

Slider

local Speed = Section:AddSlider({
    Name = "Walk speed",
    Description = "Choose a value from 16 to 100.",
    Min = 16,
    Max = 100,
    Default = 16,
    Increment = 1,
    ValueName = " studs/s",
    Smooth = true,
    Flag = "walk_speed",
    Save = true,
    Callback = function(value)
        print(value)
    end,
})

Speed:Set(32)

Optional formatting hooks include FormatValue, ParseValue, and DisplayFormattedInput. Use Color and Color2 for the track gradient.

local Mode = Section:AddDropdown({
    Name = "Target mode",
    Options = { "Closest", "Lowest health", "Random" },
    Default = "Closest",
    Search = true,
    MultiSelect = false,
    Flag = "target_mode",
    Save = true,
    Callback = function(value)
        print("Selected:", value)
    end,
})

Useful options include Options, Default, MultiSelect, Search, Players, Whitelist, Advanced, Fill, FillColor, Outline, OutlineColor, Locked, Flag, and Save.

Mode:SelectAll()
Mode:Invert()
Mode:Clear()
Mode:Refresh({ "Closest", "Farthest" })

Textbox and text area

Section:AddTextbox({
    Name = "Display name",
    Placeholder = "Type a name…",
    Default = "Player",
    Flag = "display_name",
    Save = true,
    Callback = function(text)
        print(text)
    end,
})

Bind

local Bind = Section:AddBind({
    Name = "Open menu",
    Default = Enum.KeyCode.RightShift,
    Hold = false,
    Flag = "menu_bind",
    Save = true,
    Callback = function(active)
        print(active)
    end,
})

Bind:Set(Enum.KeyCode.F4)

Color picker

local Accent = Section:AddColorpicker({
    Name = "Accent color",
    Default = Color3.fromRGB(139, 92, 246),
    Transparency = 0,
    Live = true,
    Flag = "accent_color",
    Save = true,
    Callback = function(color, transparency)
        print(color, transparency)
    end,
})

Accent:Set(Color3.fromRGB(59, 130, 246))
Accent:SetTransparency(0.15)

Compact controls

MethodPurposeMain options
AddStepperIncrement/decrement a numberMin, Max, Default, Increment, Callback
AddChecklistToggle a list of itemsItems, Callback
AddQuickToggleRowCompact set of boolean optionsOptions, Default, Callback
CreateCheckboxStandalone checkbox controlCurrentValue, Flag, Save, Callback
AddActionRowRow of action buttonsButtons, Outline, OutlineColor
AddMiniButtonsSmall inline buttonsButtons
CreateFlipButtonTwo-sided action buttonFront, Back, Callback
CreateRippleButtonAnimated buttonName, Description, Callback

See Controllers for runtime update methods.