Garry's Mod Wiki

Panel:SetTerm

  Panel:SetTerm( number delay )

Description

Removes the panel after given time in seconds.

This function will not work if PANEL:AnimationThink is overridden, unless Panel:AnimationThinkInternal is called every frame.

Arguments

1 number delay
Delay in seconds after which the panel should be removed.