Garry's Mod Wiki

Panel:SetZPos

  Panel:SetZPos( number zIndex )

Description

Sets the panels z position which determines the rendering order.

Panels with lower z positions appear behind panels with higher z positions.

This also controls in which order panels docked with Panel:Dock appears.

Arguments

1 number zIndex
The z position of the panel.
Can't be lower than -32768 or higher than 32767.