Garry's Mod Wiki




A think hook for panels using ConVars as a value. Call it in the Think hook. Sets the panel's value should the convar change.

This function is best for: text inputs, read-only inputs, dropdown selects

For a number alternative, see Panel:ConVarNumberThink.

Important: Make sure your Panel has a SetValue function, else you may get errors.


How it should be implemented into your input.

function PANEL:Think() self:ConVarStringThink() end
Output: Panel's value is changed when the convar changes.

Page Links

Special Pages



Render Time: 215ms

DB GetPage 150
Generate Html 2
SaveChanges (1) 40
Render Body 0
Render Sidebar 20