Garry's Mod Wiki

ConVar:SetInt

ConVar:SetInt

  ConVar:SetInt( number value )

Description

Sets a ConVar's value to the input number after converting it to an integer.

This can only be ran on ConVars created from within Lua.

Arguments

1 number value
Value to set the ConVar to.

Example

Demonstrates the use of this function.

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

Special Pages


Wikis

?

Render Time: 47ms

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