Garry's Mod Wiki

cookie

Used to store permanent variables/settings on clients that will persist between servers. They are stored in the cl.db, sv.db, or mn.db SQLite databases depending on the realm, located in the root Garry's Mod folder.

Methods

cookie.Delete( string name )
Deletes a cookie on the client.
number cookie.GetNumber( string name, any default = nil )
Gets the value of a cookie on the client as a number.
string cookie.GetString( string name, any default = nil )
Gets the value of a cookie on the client as a string.
cookie.Set( string key, string value )
Sets the value of a cookie, which is saved automatically by the sql. These are stored in the *.db files - cl.db for clients, mn.db for menu state and sv.db for servers.

Page Links


Special Pages


Wikis

?

Render Time: 29ms

DB GetPage 4
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 11