XLQP Gen1
ElementsCompatibility aliases

CreateCooldownButton

This compatibility method behaves like AddCooldownButton. Adds an action button that temporarily locks itself after activation. It is kept so scripts written with the older CreateCooldownButton name continue to work.

CreateCooldownButton

Compatibility alias

CreateCooldownButton is an alternate name for AddCooldownButton. New code can use AddCooldownButton.

What it does

This compatibility method behaves like AddCooldownButton. Adds an action button that temporarily locks itself after activation. It is kept so scripts written with the older CreateCooldownButton name continue to work.

When to use it

Use it to prevent rapid repeats for rate-limited actions, teleports, network calls, or expensive operations. Prefer AddCooldownButton in new code so the method name matches the current API.

ElementFunction:CreateCooldownButton(CooldownConfig)

local Result = Section:CreateCooldownButton({
    Name = "Example",
    Callback = function(value)
        print(value)
    end,
})

Behavior and return value

This alias forwards to AddCooldownButton, 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.