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: 50ms

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