XLQP Gen1
ElementsCompatibility aliases

CreateDependencyBox

This compatibility method behaves like AddDependencyBox. Adds content whose enabled or visible state depends on another control or predicate. It is kept so scripts written with the older CreateDependencyBox name continue to work.

CreateDependencyBox

Compatibility alias

CreateDependencyBox is an alternate name for AddDependencyBox. New code can use AddDependencyBox.

What it does

This compatibility method behaves like AddDependencyBox. Adds content whose enabled or visible state depends on another control or predicate. It is kept so scripts written with the older CreateDependencyBox name continue to work.

When to use it

Use it to reveal advanced settings only when their parent feature is enabled or a required value matches. Prefer AddDependencyBox in new code so the method name matches the current API.

ElementFunction:CreateDependencyBox(DependencyConfig)

local AdvancedDependency = Controls:CreateDependencyBox({
    Name = "Advanced Dependency",
    Dependency = UnlockAdvanced,
    Value = true
})

Behavior and return value

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