Lua API
  • ๐Ÿ”ŽOverview
  • Introduction
    • ๐Ÿš€Creating scripts
      • ๐Ÿง First Steps
      • ๐Ÿ–ฅ๏ธAdding UI
      • ๐Ÿ“šCreating Libraries
  • API
    • ๐ŸŒGlobal Functions
    • โš™๏ธInstances
      • ๐Ÿ”ขMath
      • โ˜Ž๏ธEvents
        • event_t
      • ๐ŸŽฎGame
        • global_vars_t
        • cengine_client
          • cnet_chan
        • ccsgo_input
        • cinput_system
        • cgame_ui_funcs
        • ccvar
          • convar
      • ๐Ÿ•น๏ธMods
        • events_t
      • โœ๏ธDraw
        • โš™๏ธTypes
          • โš™๏ธrect
          • โš™๏ธvec2
          • โš™๏ธcolor
          • โš™๏ธaccessor
        • ๐Ÿ–ฅ๏ธAdapter
        • โœ๏ธLayer
          • outline_mode
          • rounding
          • glow_parts
          • text_params
            • text_alignment
          • shadow_dir
          • command
            • render_mode
        • ๐Ÿ–ผ๏ธManaged
          • ๐Ÿ–ผ๏ธtexture
            • svg_texture
            • animated_texture
          • ๐Ÿ–ผ๏ธshader
          • โ„ข๏ธfont_base
            • font
            • font_gdi
            • glyph_t
            • font_flags
      • ๐Ÿ™‹Entities
        • entity_list_t
          • entity_entry_t
        • base_entity
          • schema_accessor_t
          • cs2_weapon_base_gun
          • cs2_player_pawn
          • cs2_player_controller
          • cs2_weapon_base
          • cs2_grenade_projectile
        • ccsweapon_base_vdata
          • cfiring_mode
        • chandle
        • csweapon_mode
        • csweapon_type
        • weapon_id
        • csweapon_category
        • observer_mode_t
      • ๐Ÿ–ฅ๏ธGui
        • โš™๏ธTypes
          • โš™๏ธbits
          • โš™๏ธcontrol_id
        • context
          • user_t
        • context_input
          • mouse_button
        • notification_system
          • notification
        • control
          • control_type
          • value_param
          • checkbox
          • slider
          • label
          • selectable
          • button
          • color_picker
          • spacer
          • text_input
          • combo_box
          • image
        • container
          • control_container
            • layout
            • group
      • โš™๏ธUtils
    • โš™๏ธTypes
      • โš™๏ธptr
      • โš™๏ธref_holder_t
      • โš™๏ธvector
      • โš™๏ธvector4d
      • ๐ŸŽฎveccolor
      • ๐ŸŽฎcolor
      • ๐ŸŽฎcview_setup
      • ๐ŸŽฎcuser_cmd
      • ๐ŸŽฎgame_event_t
    • ๐ŸŸฐEnums
      • ๐ŸŸฐclient_frame_stage
      • ๐ŸŸฐinput_bit_mask
Powered by GitBook

ยฉ 2025 - FATALITY

On this page
Export as PDF
  1. API
  2. Instances
  3. Game

ccvar

Previouscgame_ui_funcsNextconvar

Last updated 3 months ago

Usage:

Usage: game.cvar:{method}

This type represents the game's cvar system.

find๏ปฟ

Method

Get the game's cvar under this name.

Arguments

Name

Type

Description

name

string

Var name.

Returns

Type

Description

Convar object.

Example

local sv_quantize_movement_input = game.cvar:find('sv_quantize_movement_input')
if not sv_quantize_movement_input then
    error('sv_quantize_movement_input not found')
end
โš™๏ธ
๐ŸŽฎ
convar