Garry's Mod Wiki


Panel:SetTooltip( string str )


Sets the tooltip to be displayed when a player hovers over the panel object with their cursor.

Tooltips do not show when the Game UI is open.


1 string str
The text to be displayed in the tooltip. Set false to disable it.


To disable tooltip set first argument to false

local frame = vgui.Create("DFrame") frame:SetSize(96, 96) frame:Center() frame:MakePopup() local icon = frame:Add("SpawnIcon") icon:SetPos(0, 20) icon:SetSize(64, 64) icon:SetModel("models/props_junk/watermelon01.mdl") icon:SetTooltip(false) -- disable tooltip for this panel

Page Links

Special Pages



Render Time: 180ms

DB GetPage 29
Generate Html 3
SaveChanges (1) 124
Render Body 0
Render Sidebar 20