Legacy Lua Api
  • Overview
  • Getting Started
    • Creating Scripts
    • Coding Scripts
    • Examples
  • Fatality
    • Render
    • Config
    • Menu
    • Callbacks
    • Math
    • Input
    • Datatypes
      • Shot
      • Lag Record
      • Shot Info
      • Config Value
  • Csgo
    • Interface Handler
      • Global Vars
      • Entity List
      • Engine Client
      • Cvar
      • Events
      • Debug Overlay
    • Datatypes
      • Color
      • Vector3
      • Vector2
      • Angle
      • Entity
      • Player
      • Cvar
      • Game Event
      • Font
      • Matrix3x4
Powered by GitBook

© 2025 - FATALITY

On this page
  • Functions
  • get_int
  • get_float
  • set_int
  • set_float
  • set_string
  • set_color
  • unlock
  1. Csgo
  2. Datatypes

Cvar

csgo.cvar

PreviousPlayerNextGame Event

Last updated 2 years ago

Convar data type. See

Functions

get_int

returns the convar value as an integer

get_int( )

get_float

returns the convar value as a float

get_float( )

set_int

sets the convar value as an integer

set_int( value )

Parameter

Data type

Description

value

integer

value to set the convar to

set_float

sets the convar value as a float

set_float( value )

Parameter

Data type

Description

value

float

value to set the convar to

set_string

sets the convar value as a string

set_string( value )

Parameter

Data type

Description

value

string

value to set the convar to

set_color

set_float( value )

Parameter

Data type

Description

value

value to set the convar to

unlock

allows use of sv_cheat protected convars

unlock( )

sets the convar value as a

csgo.color
csgo.color
cvar:find_var