Garry's Mod Wiki

Garry's Mod Wiki

  Panel:SetCookie( string cookieName, string value )

Description

Stores a string in the named cookie using Panel:GetCookieName as prefix.

You can also retrieve and modify this cookie by using the cookie. Cookies are stored in this format:

panelCookieName.cookieName
The panel's cookie name MUST be set for this function to work. See Panel:SetCookieName.

Arguments

1 string cookieName
The unique name used to retrieve the cookie later.
2 string value
The value to store in the cookie. This can be retrieved later as a string or number.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...