XLQP Gen1
ElementsAdvanced integrations

AddGameSession

Adds game-session controls for supported places, rejoining, server hopping, history, and queued re-execution.

AddGameSession

What it does

Adds game-session controls for supported places, rejoining, server hopping, history, and queued re-execution.

When to use it

Use it for multi-place hubs or tools that must preserve their loader across teleports and track recent sessions.

ElementFunction:AddGameSession(SessionConfig)

local _GameSession = Server:AddGameSession({
    Name = "Game Session",
    IdType = "Place",
    AutoExecute = true,
    SourceUrl = XLQPSourceUrl,
    AutoExecFile = true,
    SupportedGameIds = {
        game.PlaceId,
    },
    HistoryLimit = 8,
    Height = 480
})

Behavior and return value

Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.

Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.