XLQP Gen1
ElementsCompatibility aliases

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.