CreateDataTable
This compatibility method behaves like AddDataTable. Adds a searchable row-and-column data table. It is kept so scripts written with the older CreateDataTable name continue to work.
CreateDataTable
Compatibility alias
CreateDataTable is an alternate name for AddDataTable. New code can use AddDataTable.
What it does
This compatibility method behaves like AddDataTable. Adds a searchable row-and-column data table. It is kept so scripts written with the older CreateDataTable name continue to work.
When to use it
Use it for structured records such as players, servers, inventory, logs, or configuration entries. Prefer AddDataTable in new code so the method name matches the current API.
ElementFunction:CreateDataTable(TableConfig)
local Result = Section:CreateDataTable({
Name = "Example",
Callback = function(value)
print(value)
end,
})Behavior and return value
This alias forwards to AddDataTable, 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
CreateCustomTheme
This compatibility method behaves like RegisterTheme. Registers a named theme definition for later selection. It is kept so scripts written with the older CreateCustomTheme name continue to work.
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.