Garry's Mod Wiki

Revision Difference

cvars.Bool#546947

<function name="Bool" parent="cvars" type="libraryfunc"> <description>Retrieves console variable as a boolean.</description> <realm>Shared and Menu</realm> <file line="122-L128">lua/includes/modules/cvars.lua</file>⤶ <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>