XLQP Gen1
ElementsData & charts

AddPlayerCount

Adds a live count of players in the current server.

AddPlayerCount

What it does

Adds a live count of players in the current server.

When to use it

Use it on server dashboards or status pages that need current population information.

ElementFunction:AddPlayerCount(CountConfig)

RightGroup:AddPlayerCount({
    Name = "Population"
})

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.