Garry's Mod Wiki

PANEL:LoadCookies

  PANEL:LoadCookies()

Description

Called after Panel:SetCookieName is called on this panel to apply the just loaded cookie values for this panel.

Example

function PANEL:LoadCookies() local value = self:GetCookieNumber( "SavedCookieName", 0 ) print( value ) -- Do your stuff with the loaded value end