Garry's Mod Wiki

cookie.GetNumber

  number cookie.GetNumber( string name, any default = nil )

Description

Gets the value of a cookie on the client as a number.

Arguments

1 string name
The name of the cookie that you want to get.
2 any default = nil
Value to return if the cookie does not exist.

Returns

1 number
The cookie value