Garry's Mod Wiki

Garry's Mod Wiki

  ConVar:SetFloat( number value )

Description

Sets a ConVar's value to the input number.

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:SetFloat( 13.37 )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...