Revision Difference
ConVar:SetString#528201
<function name="SetString" parent="ConVar" type="classfunc">
<description>Sets a ConVar's value to the input string. This can only be ran on ConVars created from within Lua.</description>
<realm>Shared and Menu</realm>
<args>
<arg name="value" type="string">Value to set the ConVar to.</arg>
</args>
</function>
⤶
⤶
<example>⤶
⤶
<example>⤶
<description>Demonstrates the use of this function.</description>
<code>local exmp = GetConVar( "CVAR_EXAMPLE" )⤶
exmp:SetString("1337")</code>⤶
<code>⤶
local example = GetConVar( "CVAR_EXAMPLE" )⤶
example:SetString( "1337" )⤶
</code>⤶
</example>