Garry's Mod Wiki

Revision Difference

cookie.GetNumber#546997

<function name="GetNumber" parent="cookie" type="libraryfunc"> <description>Gets the value of a cookie on the client as a number.</description> <realm>Shared and Menu</realm> <file line="84">lua/includes/modules/cookie.lua</file> <file line="95-L103">lua/includes/modules/cookie.lua</file> <args> <arg name="name" type="string">The name of the cookie that you want to get.</arg> <arg name="default" type="any" default="nil">Value to return if the cookie does not exist.</arg> </args> <rets> <ret name="" type="number">The cookie value</ret> </rets> </function>