Garry's Mod Wiki

Revision Difference

cvars.GetConVarCallbacks#514260

<function name="GetConVarCallbacks" parent="cvars" type="libraryfunc">⤶ <description>Returns a table of the given <page>ConVar</page>s callbacks.</description>⤶ <realm>Shared and Menu</realm>⤶ <args>⤶ <arg name="name" type="string">The name of the &lt;page&gt;ConVar&lt;/page&gt;.</arg>⤶ <arg name="createIfNotFound" type="boolean" default="false">Whether or not to create the internal callback table for given &lt;page&gt;ConVar&lt;/page&gt; if there isn&#x27;t one yet.&#xA;&#xA;&#xA;This argument is internal and should not be used.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="table">A table of the convar's callbacks, or nil if the convar doesn't exist.</ret>⤶ </rets>⤶ </function>⤶ ⤶