Garry's Mod Wiki

ConVar:SetString

ConVar:SetString

  ConVar:SetString( string value )

Description

Sets a ConVar's value to the input string. This can only be ran on ConVars created from within Lua.

Arguments

1 string value
Value to set the ConVar to.

Example

Demonstrates the use of this function.

local example = GetConVar( "CVAR_EXAMPLE" ) example:SetString( "1337" )

Special Pages


Wikis

?

Render Time: 25ms

DB GetPage 2
Generate Html 1
SaveChanges (1) 13
Render Body 0
Render Sidebar 6