Garry's Mod Wiki

Revision Difference

cvars.Bool#514261

<function name="Bool" parent="cvars" type="libraryfunc">⤶ <description>Retrieves console variable as a boolean.</description>⤶ <realm>Shared and Menu</realm>⤶ <args>⤶ <arg name="cvar" type="string">Name of console variable</arg>⤶ <arg name="default" type="boolean" default="false">The value to return if the console variable does not exist</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">Retrieved value</ret>⤶ </rets>⤶ </function>⤶ ⤶