Garry's Mod Wiki

Used to store permanent variables/settings on clients that will persist between servers. They are stored in the cl.db SQLite database located in the root Garry's Mod folder.

Methods

void 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.

void 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: 24ms

Session 0
DB GetPage 2
Generate Html 5
SaveChanges 8
Render Body 0
Render Sidebar 6