Garry's Mod Wiki

ConVar:GetString

ConVar:GetString

  string ConVar:GetString()

Description

Returns the current ConVar value as a string.

Returns

1 string
The current console variable value as a string.

Example

Will check if the gamemode is sandbox (Consider using engine.ActiveGamemode)

if GetConVar("gamemode"):GetString() == "sandbox" then print("Gamemode is sandbox") end
Output: Gamemode is sandbox

Special Pages


Wikis

?

Render Time: 63ms

DB GetPage 45
Generate Html 3
SaveChanges (1) 8
Render Body 0
Render Sidebar 6