XLQP Gen1
ElementsAdvanced integrations

AddNametags

Adds configurable player nametags with health and distance information.

AddNametags

What it does

Adds configurable player nametags with health and distance information.

When to use it

Use it for player overlays or previews where identity and live status must be shown together.

ElementFunction:AddNametags(TagConfig)

Visuals:AddNametags({
    Name = "Nametags",
    Content = "Renders nametags on players through walls.",
    Default = false,
    ShowHealth = true,
    ShowDistance = true,
    ShowDecimal = false,
    PreviewName = "CyberWolf",
    Health = 11,
    Callback = function(state)
        print("nametags", state.Enabled, state.ShowHealth, state.ShowDistance, state.ShowDecimal)
    end
})

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.