Garry's Mod Wiki

Revision Difference

Global.GetConVarNumber#514908

<function name="GetConVarNumber" parent="Global" type="libraryfunc">⤶ <description><deprecated>Store the <page>ConVar</deprecated> object retrieved with <page>Global.GetConVar</page> and call <page>ConVar:GetInt</page> or <page>ConVar:GetFloat</page> on it.</page>Gets the numeric value ConVar with the specified name.</description>⤶ <realm>Shared and Menu</realm>⤶ <file line="447-L451">lua/includes/util.lua</file>⤶ <args>⤶ <arg name="name" type="string">Name of the ConVar to get.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">The ConVar's value.</ret>⤶ </rets>⤶ </function>⤶ ⤶