# Table of Contents - [Home | Plague API](#home-plague-api) - [Renderer | Plague API](#renderer-plague-api) - [Getting Started | Plague API](#getting-started-plague-api) - [Globals | Plague API](#globals-plague-api) - [Input | Plague API](#input-plague-api) - [Entities | Plague API](#entities-plague-api) - [Cheat | Plague API](#cheat-plague-api) - [CVar | Plague API](#cvar-plague-api) - [Menu | Plague API](#menu-plague-api) - [CConVar | Plague API](#cconvar-plague-api) - [CGameEvent | Plague API](#cgameevent-plague-api) - [Color | Plague API](#color-plague-api) - [CUserCmd | Plague API](#cusercmd-plague-api) - [Vector2D | Plague API](#vector2d-plague-api) - [MenuVar | Plague API](#menuvar-plague-api) - [Vector | Plague API](#vector-plague-api) - [Renderer | Plague API](#renderer-plague-api) - [CConVar | Plague API](#cconvar-plague-api) --- # Home | Plague API ### [](https://docs.plaguecheat.cc/#organization) Organization * * * * Getting Started has the essential information to create scripts with our API * Help links to our community server where you can ask questions and share scripts ### [](https://docs.plaguecheat.cc/#quick-links) Quick Links * * * Interfaces Types [Renderer](https://docs.plaguecheat.cc/reference/renderer) [CConVar](https://docs.plaguecheat.cc/types/cconvar) [Globals](https://docs.plaguecheat.cc/reference/globals) [CGameEvent](https://docs.plaguecheat.cc/types/cgameevent) [Entities](https://docs.plaguecheat.cc/reference/entities) [Color](https://docs.plaguecheat.cc/types/color) [Cheat](https://docs.plaguecheat.cc/reference/cheat) [CUserCmd](https://docs.plaguecheat.cc/types/cusercmd) [CVar](https://docs.plaguecheat.cc/reference/cvar) [Vector](https://docs.plaguecheat.cc/types/vector) [Input](https://docs.plaguecheat.cc/reference/input) [Vector2D](https://docs.plaguecheat.cc/types/vector2d) [Menu](https://docs.plaguecheat.cc/reference/menu) [MenuVar](https://docs.plaguecheat.cc/types/menuvar) [NextGetting Started](https://docs.plaguecheat.cc/getting-started) Last updated 5 months ago --- # Renderer | Plague API ### [](https://docs.plaguecheat.cc/reference/renderer#drawtext) DrawText **Renders a string within bounds of game screen** * * * Copy Renderer.DrawText('Verdana', 'Hello!', Vector2D(100, 100), false, true, Color(255, 255, 255, 255)) Name Type Description Font String String for loaded font Text String String for text to be rendered Position [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Dimensions for text to be displayed Centered Boolean Is text centered Outlined Boolean Outlined text Color [Color](https://docs.plaguecheat.cc/types/color) Color of the text ### [](https://docs.plaguecheat.cc/reference/renderer#loadfontfromfile) LoadFontFromFile **Initializes a downloaded font** Copy Renderer.LoadFontFromFile('font', 'verdana', 24, true) Name Type Description Instance String Custom name for font Font String Name of font Size Integer Font size Anti-aliased Boolean Is text anti-aliased Anti-aliasing is optional, will be set to true if no value is set ### [](https://docs.plaguecheat.cc/reference/renderer#drawline) **DrawLine** #### [](https://docs.plaguecheat.cc/reference/renderer#renders-a-line-on-game-screen) Renders a line within bounds of game screen * * * Copy Renderer.DrawLine(Vector2D(100, 200), Vector2D(200, 200), Color(255, 255, 255, 255), 100) Name Type Description Start [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Position for the start of the line End [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Position for the end of the line Color [Color](https://docs.plaguecheat.cc/types/color) Color of the line Thickness Integer Thickness of the line ### [](https://docs.plaguecheat.cc/reference/renderer#drawcirclefilled) **DrawCircleFilled** #### [](https://docs.plaguecheat.cc/reference/renderer#renders-a-filled-circle-on-game-screen) Renders a filled circle on game screen * * * Copy Renderer.DrawCircleFilled(Vector2D(100, 100), Color(255, 255, 255, 255), 300) Name Type Description Position [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Position for the circle to be rendered Color [Color](https://docs.plaguecheat.cc/types/color) Color of the circle Radius Integer Radius of the circle ### [](https://docs.plaguecheat.cc/reference/renderer#drawcirclegradient3d) **DrawCircleGradient3D** Renders a circle with a gradient on game screen Copy Renderer.DrawCircleGradient3D(Vector(100, 100, 100) Color(255, 255, 255, 255), Color(255, 255, 255, 0), 32) Position [Vector](https://docs.plaguecheat.cc/types/vector) Inner Color [Color](https://docs.plaguecheat.cc/types/color) Outer Color [Color](https://docs.plaguecheat.cc/types/color) Radius Integer ### [](https://docs.plaguecheat.cc/reference/renderer#drawcircle3d) **DrawCircle3D** Renders a circle on game screen Copy Renderer.DrawCircle3D(Vector(100, 100, 100) Color(255, 255, 255, 255), 32) Position [Vector](https://docs.plaguecheat.cc/types/vector) Color [Color](https://docs.plaguecheat.cc/types/color) Radius Integer ### [](https://docs.plaguecheat.cc/reference/renderer#drawrect) **DrawRect** Renders a rectangle on game screen Copy Renderer.DrawRect(Vector2D(100, 100), Vector2D(200, 200), Color(255, 255, 255, 255)) Start [Vector2D](https://docs.plaguecheat.cc/types/vector2d) End [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Color [Color](https://docs.plaguecheat.cc/types/color) Rounding Integer Rounding is an optional parameter, if left without a value, it will be set to 0 ### [](https://docs.plaguecheat.cc/reference/renderer#drawrectfilled) **DrawRectFilled** Renders a filled rectangle on game screen Copy Renderer.DrawRectFilled(Vector2D(100, 100), Vector2D(200, 200), Color(255, 255, 255, 255)) Start [Vector2D](https://docs.plaguecheat.cc/types/vector2d) End [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Color [Color](https://docs.plaguecheat.cc/types/color) Rounding Integer Rounding is an optional parameter, if left without a value, it will be set to 0 ### [](https://docs.plaguecheat.cc/reference/renderer#getscreensize) **GetScreenSize** #### [](https://docs.plaguecheat.cc/reference/renderer#returns-dimensions-of-screen) Returns dimensions of screen Copy Renderer.GetScreenSize() ### [](https://docs.plaguecheat.cc/reference/renderer#createtexturefrombase64) **CreateTextureFromBase64** #### [](https://docs.plaguecheat.cc/reference/renderer#creates-an-image-from-base64-string) Creates an image from base64 string Copy local texture = Renderer.CreateTextureFromBase64(string, Vector2D(500, 500)) Name Type Texture Data String Initial Size [Vector2D](https://docs.plaguecheat.cc/types/vector2d) ### [](https://docs.plaguecheat.cc/reference/renderer#createtexturefrombytes) **CreateTextureFromBytes** #### [](https://docs.plaguecheat.cc/reference/renderer#creates-an-image-from-byte-array) Creates an image from byte array Copy local texture = Renderer.CreateTextureFromBytes(byte, Vector2D(500, 500)) Name Type Texture Data Byte Array Initial Size [Vector2D](https://docs.plaguecheat.cc/types/vector2d) ### [](https://docs.plaguecheat.cc/reference/renderer#drawtexture) **DrawTexture** #### [](https://docs.plaguecheat.cc/reference/renderer#renders-texture-on-screen) Renders texture on screen Copy Renderer.DrawTexture(texture, Vector2D(100, 100), Vector2D(100, 100)) Name Type Texture Texture Position [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Size [Vector2D](https://docs.plaguecheat.cc/types/vector2d) [PreviousGetting Started](https://docs.plaguecheat.cc/getting-started) [NextGlobals](https://docs.plaguecheat.cc/reference/globals) Last updated 5 months ago --- # Getting Started | Plague API [](https://docs.plaguecheat.cc/getting-started#directory) Directory ------------------------------------------------------------------------ * All related files (configs, scripts, models, etc) need to be placed in proper folders * Scripts & config files go under c:\\plaguecheat.cc * Models go under the Counter-Strike 2 root folder, then into game/csgo/characters For documentation on FFI, refer to [LuaJIT's FFI tutorial](https://luajit.org/ext_ffi_tutorial.html) [PreviousHome](https://docs.plaguecheat.cc/) [NextRenderer](https://docs.plaguecheat.cc/reference/renderer) Last updated 5 months ago --- # Globals | Plague API [](https://docs.plaguecheat.cc/reference/globals#globals) Globals ---------------------------------------------------------------------- ### [](https://docs.plaguecheat.cc/reference/globals#isconnected) **IsConnected** #### [](https://docs.plaguecheat.cc/reference/globals#is-client-connected-to-a-game-server) Is client connected to a game server Copy Globals.IsConnected() ### [](https://docs.plaguecheat.cc/reference/globals#isactive) **IsActive** #### [](https://docs.plaguecheat.cc/reference/globals#id-1) Copy Globals.IsActive() ### [](https://docs.plaguecheat.cc/reference/globals#getcurrenttime) **GetCurrentTime** #### [](https://docs.plaguecheat.cc/reference/globals#elapsed-time-since-game-start) Elapsed time since game start Copy Globals.GetCurrentTime() ### [](https://docs.plaguecheat.cc/reference/globals#getframetime) **GetFrameTime** #### [](https://docs.plaguecheat.cc/reference/globals#elapsed-time-between-frames) Elapsed time between frames Copy Globals.GetFrameTime() ### [](https://docs.plaguecheat.cc/reference/globals#gettickinterval) **GetTickInterval** #### [](https://docs.plaguecheat.cc/reference/globals#returns-interval-between-ticks-in-seconds) Returns interval between ticks in seconds Copy Globals.GetTickInterval() ### [](https://docs.plaguecheat.cc/reference/globals#gettickcount) **GetTickCount** #### [](https://docs.plaguecheat.cc/reference/globals#returns-elapsed-ticks-since-game-start) Returns elapsed ticks since game start Copy Globals.GetTickCount() ### [](https://docs.plaguecheat.cc/reference/globals#getmapname) **GetMapName** #### [](https://docs.plaguecheat.cc/reference/globals#returns-short-name-of-current-map) Returns short name of current map Copy Globals.GetMapName() ### [](https://docs.plaguecheat.cc/reference/globals#getmapbspname) **GetMapBSPName** #### [](https://docs.plaguecheat.cc/reference/globals#returns-full-name-of-current-map) Returns full name of current map Copy Globals.GetMapBSPName() [PreviousRenderer](https://docs.plaguecheat.cc/reference/renderer) [NextEntities](https://docs.plaguecheat.cc/reference/entities) Last updated 5 months ago --- # Input | Plague API [](https://docs.plaguecheat.cc/reference/input#input) Input ---------------------------------------------------------------- ### [](https://docs.plaguecheat.cc/reference/input#ismenuopen) **IsMenuOpen** #### [](https://docs.plaguecheat.cc/reference/input#returns-true-if-menu-is-open) Returns 'true' if menu is open Copy Input.IsMenuOpen() ### [](https://docs.plaguecheat.cc/reference/input#getcursorpos) **GetCursorPos** #### [](https://docs.plaguecheat.cc/reference/input#returns-vector2d-of-mouse-position) Returns Vector2D of mouse position Copy Input.GetCursorPos() * * * ### [](https://docs.plaguecheat.cc/reference/input#getkeydown) **GetKeyDown** #### [](https://docs.plaguecheat.cc/reference/input#returns-true-if-specified-key-is-down) Returns 'true' if specified key is down Copy Input.GetKeyDown(1) Name Type Description Key Integer Returns the key that is passed if it is being pressed Keys can be found [here](https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes) [PreviousCVar](https://docs.plaguecheat.cc/reference/cvar) [NextMenu](https://docs.plaguecheat.cc/reference/menu) Last updated 5 months ago --- # Entities | Plague API [](https://docs.plaguecheat.cc/reference/entities#entities) Entities ------------------------------------------------------------------------- ### [](https://docs.plaguecheat.cc/reference/entities#gethighestentityindex) **GetHighestEntityIndex** #### [](https://docs.plaguecheat.cc/reference/entities#returns-current-highest-entity-index) Returns current highest entity index Copy Entities.GetHighestEntityIndex() ### [](https://docs.plaguecheat.cc/reference/entities#getentityfromhandle) **GetEntityFromHandle** #### [](https://docs.plaguecheat.cc/reference/entities#takes-a-handle-and-returns-an-entity-from-it) Takes a handle and returns an entity from it Copy Entities.GetEntityFromHandle(handle) Name Type Entity Handle Integer ### [](https://docs.plaguecheat.cc/reference/entities#getentityfromindex) **GetEntityFromIndex** #### [](https://docs.plaguecheat.cc/reference/entities#takes-an-index-and-returns-an-entity-from-it) Takes an index and returns an entity from it Copy Entities.GetEntityFromIndex(index) Name Type Entity Index Integer ### [](https://docs.plaguecheat.cc/reference/entities#getentityhandle) **GetEntityHandle** #### [](https://docs.plaguecheat.cc/reference/entities#takes-an-entity-and-returns-its-handle) Takes an entity and returns it's handle Copy Entities.GetEntityHandle(entity) Name Type Entity BaseEntity ### [](https://docs.plaguecheat.cc/reference/entities#getentityhandle-1) **GetDesignerName** #### [](https://docs.plaguecheat.cc/reference/entities#takes-an-entity-and-returns-its-handle-1) Takes an entity and returns it's designer name Copy Entities.GetDesignerName(entity) Name Type Entity BaseEntity ### [](https://docs.plaguecheat.cc/reference/entities#getgamerules) **GetGameRules** #### [](https://docs.plaguecheat.cc/reference/entities#returns-object-of-game-rules) Returns object of game rules Copy Entities.GetGameRules() [PreviousGlobals](https://docs.plaguecheat.cc/reference/globals) [NextCheat](https://docs.plaguecheat.cc/reference/cheat) Last updated 5 months ago --- # Cheat | Plague API ### [](https://docs.plaguecheat.cc/reference/cheat#registercallback) **RegisterCallback** #### [](https://docs.plaguecheat.cc/reference/cheat#registers-a-callback-for-a-function) Registers a callback for a function Copy Cheat.RegisterCallback('OnRenderer', OnRenderer()); Name Type Callback Name String Callback Function Function List of all internal callbacks: OnMapLoad OnPreCreateMove OnPostCreateMove OnFrameStageNotify OnRenderer OnFireGameEvent ### [](https://docs.plaguecheat.cc/reference/cheat#getusername) **GetUserName** #### [](https://docs.plaguecheat.cc/reference/cheat#returns-plaguecheat-forum-username) Returns PlagueCheat forum username Copy Cheat.GetUserName() ### [](https://docs.plaguecheat.cc/reference/cheat#getscriptname) **GetScriptName** #### [](https://docs.plaguecheat.cc/reference/cheat#returns-name-of-loaded-script) Returns name of loaded script Copy Cheat.GetScriptName() ### [](https://docs.plaguecheat.cc/reference/cheat#getscriptid) **GetScriptId** #### [](https://docs.plaguecheat.cc/reference/cheat#returns-id-of-loaded-script) Returns ID of loaded script Copy Cheat.GetScriptId() ### [](https://docs.plaguecheat.cc/reference/cheat#getplayerfromuserid) **GetPlayerFromUserId** #### [](https://docs.plaguecheat.cc/reference/cheat#returns-a-player-object-from-their-id) Returns a player object from their ID Copy Cheat.GetPlayerFromUserId() Name Type Description UID Integer Returns in-game user ID [PreviousEntities](https://docs.plaguecheat.cc/reference/entities) [NextCVar](https://docs.plaguecheat.cc/reference/cvar) Last updated 5 months ago --- # CVar | Plague API ### [](https://docs.plaguecheat.cc/reference/cvar#findvar) **FindVar** #### [](https://docs.plaguecheat.cc/reference/cvar#returns-cvar) Returns CVar Copy CVar.FindVar('sv_airaccelerate') Name Type ConVar String ### [](https://docs.plaguecheat.cc/reference/cvar#executeclientcmd) **ExecuteClientCmd** #### [](https://docs.plaguecheat.cc/reference/cvar#executes-a-console-command) Executes a console command Copy CVar.ExecuteClientCmd("play \sounds\physics\metal\chain_impact_hard2"); Name Type Description Command String Executes console command [PreviousCheat](https://docs.plaguecheat.cc/reference/cheat) [NextInput](https://docs.plaguecheat.cc/reference/input) Last updated 5 months ago --- # Menu | Plague API ### [](https://docs.plaguecheat.cc/reference/menu#checker) **Checker** #### [](https://docs.plaguecheat.cc/reference/menu#adds-checkbox-element-to-menu) Adds checkbox element to menu Copy Menu.Checker('Enabled', false) Name String Default Value Boolean Has Keybind Boolean Has Color Picker Boolean Keybind & Color Picker bools are optional, will be set to false if no value is set ### [](https://docs.plaguecheat.cc/reference/menu#slider) **Slider** #### [](https://docs.plaguecheat.cc/reference/menu#adds-slider-element-to-menu) Adds slider element to menu Copy Menu.Slider('FOV', 0, 0, 180) Name String Default Value Integer Minimum Integer Maximum Integer ### [](https://docs.plaguecheat.cc/reference/menu#combo) **Combo** #### [](https://docs.plaguecheat.cc/reference/menu#adds-a-combobox-element-to-menu) Adds a combobox element to menu Copy Menu.Combo('Sorting', 0, items) Name String Default Value Integer Items String Array ### [](https://docs.plaguecheat.cc/reference/menu#list) **List** #### [](https://docs.plaguecheat.cc/reference/menu#adds-a-listbox-element-to-menu) Adds a listbox element to menu Copy Menu.List('Hitsound', 0, items) Name Type Description Name String Listbox name Value Integer Default value (starts from 0) Items String Array Name of items Count Integer Row of items Count is optional, default value is 8 [PreviousInput](https://docs.plaguecheat.cc/reference/input) [NextCConVar](https://docs.plaguecheat.cc/types/cconvar) Last updated 5 months ago --- # CConVar | Plague API ### [](https://docs.plaguecheat.cc/types/cconvar#getint) **GetInt** Copy convar:GetInt() ### [](https://docs.plaguecheat.cc/types/cconvar#getbool) **GetBool** Copy convar:GetBool() ### [](https://docs.plaguecheat.cc/types/cconvar#getstring) **GetString** Copy convar:GetString() ### [](https://docs.plaguecheat.cc/types/cconvar#getfloat) **GetFloat** Copy convar:GetFloat() [PreviousMenu](https://docs.plaguecheat.cc/reference/menu) [NextCGameEvent](https://docs.plaguecheat.cc/types/cgameevent) Last updated 5 months ago --- # CGameEvent | Plague API ### [](https://docs.plaguecheat.cc/types/cgameevent#getint) **GetInt** Copy event:GetInt() ### [](https://docs.plaguecheat.cc/types/cgameevent#getstring) **GetString** Copy event:GetString() ### [](https://docs.plaguecheat.cc/types/cgameevent#getname) **GetName** Copy event:GetName() ### [](https://docs.plaguecheat.cc/types/cgameevent#getplayercontroller) **GetPlayerController** Copy event:GetPlayerController() ### [](https://docs.plaguecheat.cc/types/cgameevent#getplayerpawn) **GetPlayerPawn** Copy event:GetPlayerPawn() ### [](https://docs.plaguecheat.cc/types/cgameevent#setstring) **SetString** Copy event:SetString() ### [](https://docs.plaguecheat.cc/types/cgameevent#setint) **SetInt** Copy event:SetInt() [PreviousCConVar](https://docs.plaguecheat.cc/types/cconvar) [NextColor](https://docs.plaguecheat.cc/types/color) Last updated 5 months ago --- # Color | Plague API Name Type r number g number b number a number [PreviousCGameEvent](https://docs.plaguecheat.cc/types/cgameevent) [NextCUserCmd](https://docs.plaguecheat.cc/types/cusercmd) Last updated 5 months ago --- # CUserCmd | Plague API [](https://docs.plaguecheat.cc/types/cusercmd#cusercmd) CUserCmd --------------------------------------------------------------------- Name Type m\_nCommandNumber number m\_bHasBeenPredicted bool m\_nLastPredictionReason number m\_nNextPredictionReason number m\_nAttack1HistoryIndex number m\_nAttack2HistoryIndex number m\_nAttack3HistoryIndex number m\_nTickCount number m\_flForwardMove number m\_flLeftMove number m\_flUpMove number m\_nMouseDX number m\_nMouseDY number m\_angViewAngles [Vector](https://docs.plaguecheat.cc/types/vector) [PreviousColor](https://docs.plaguecheat.cc/types/color) [NextVector](https://docs.plaguecheat.cc/types/vector) Last updated 5 months ago --- # Vector2D | Plague API [](https://docs.plaguecheat.cc/types/vector2d#vector2d) Vector2D --------------------------------------------------------------------- name type x number y number [PreviousVector](https://docs.plaguecheat.cc/types/vector) [NextMenuVar](https://docs.plaguecheat.cc/types/menuvar) Last updated 5 months ago --- # MenuVar | Plague API ### [](https://docs.plaguecheat.cc/types/menuvar#getint) **GetInt** Copy MenuVar:GetInt() ### [](https://docs.plaguecheat.cc/types/menuvar#getstring) **GetBool** Copy MenuVar:GetBool() ### [](https://docs.plaguecheat.cc/types/menuvar#getname) GetString Copy MenuVar:GetString() ### [](https://docs.plaguecheat.cc/types/menuvar#getplayercontroller) **GetColor** Copy MenuVar:GetColor() ### [](https://docs.plaguecheat.cc/types/menuvar#getplayerpawn) **IsDown** Copy MenuVar:IsDown() [PreviousVector2D](https://docs.plaguecheat.cc/types/vector2d) Last updated 5 months ago --- # Vector | Plague API [](https://docs.plaguecheat.cc/types/vector#vector) Vector --------------------------------------------------------------- name type x number y number z number ### [](https://docs.plaguecheat.cc/types/vector#length) **Length** Copy vector:Length() ### [](https://docs.plaguecheat.cc/types/vector#length2d) **Length2D** Copy vector:Length2D() ### [](https://docs.plaguecheat.cc/types/vector#distto) **DistTo** Copy vector:DistTo(other) Name Type Other [Vector](https://docs.plaguecheat.cc/types/vector#vector) ### [](https://docs.plaguecheat.cc/types/vector#dot) **Dot** Copy vector:Dot(other) Name Type Other [Vector](https://docs.plaguecheat.cc/types/vector#vector) ### [](https://docs.plaguecheat.cc/types/vector#cross) **Cross** Copy vector:Cross(other) tY Other [Vector](https://docs.plaguecheat.cc/types/vector#vector) [PreviousCUserCmd](https://docs.plaguecheat.cc/types/cusercmd) [NextVector2D](https://docs.plaguecheat.cc/types/vector2d) Last updated 5 months ago --- # Renderer | Plague API ### [](https://docs.plaguecheat.cc/reference#drawtext) DrawText **Renders a string within bounds of game screen** * * * Copy Renderer.DrawText('Verdana', 'Hello!', Vector2D(100, 100), false, true, Color(255, 255, 255, 255)) Name Type Description Font String String for loaded font Text String String for text to be rendered Position [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Dimensions for text to be displayed Centered Boolean Is text centered Outlined Boolean Outlined text Color [Color](https://docs.plaguecheat.cc/types/color) Color of the text ### [](https://docs.plaguecheat.cc/reference#loadfontfromfile) LoadFontFromFile **Initializes a downloaded font** Copy Renderer.LoadFontFromFile('font', 'verdana', 24, true) Name Type Description Instance String Custom name for font Font String Name of font Size Integer Font size Anti-aliased Boolean Is text anti-aliased Anti-aliasing is optional, will be set to true if no value is set ### [](https://docs.plaguecheat.cc/reference#drawline) **DrawLine** #### [](https://docs.plaguecheat.cc/reference#renders-a-line-on-game-screen) Renders a line within bounds of game screen * * * Copy Renderer.DrawLine(Vector2D(100, 200), Vector2D(200, 200), Color(255, 255, 255, 255), 100) Name Type Description Start [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Position for the start of the line End [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Position for the end of the line Color [Color](https://docs.plaguecheat.cc/types/color) Color of the line Thickness Integer Thickness of the line ### [](https://docs.plaguecheat.cc/reference#drawcirclefilled) **DrawCircleFilled** #### [](https://docs.plaguecheat.cc/reference#renders-a-filled-circle-on-game-screen) Renders a filled circle on game screen * * * Copy Renderer.DrawCircleFilled(Vector2D(100, 100), Color(255, 255, 255, 255), 300) Name Type Description Position [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Position for the circle to be rendered Color [Color](https://docs.plaguecheat.cc/types/color) Color of the circle Radius Integer Radius of the circle ### [](https://docs.plaguecheat.cc/reference#drawcirclegradient3d) **DrawCircleGradient3D** Renders a circle with a gradient on game screen Copy Renderer.DrawCircleGradient3D(Vector(100, 100, 100) Color(255, 255, 255, 255), Color(255, 255, 255, 0), 32) Position [Vector](https://docs.plaguecheat.cc/types/vector) Inner Color [Color](https://docs.plaguecheat.cc/types/color) Outer Color [Color](https://docs.plaguecheat.cc/types/color) Radius Integer ### [](https://docs.plaguecheat.cc/reference#drawcircle3d) **DrawCircle3D** Renders a circle on game screen Copy Renderer.DrawCircle3D(Vector(100, 100, 100) Color(255, 255, 255, 255), 32) Position [Vector](https://docs.plaguecheat.cc/types/vector) Color [Color](https://docs.plaguecheat.cc/types/color) Radius Integer ### [](https://docs.plaguecheat.cc/reference#drawrect) **DrawRect** Renders a rectangle on game screen Copy Renderer.DrawRect(Vector2D(100, 100), Vector2D(200, 200), Color(255, 255, 255, 255)) Start [Vector2D](https://docs.plaguecheat.cc/types/vector2d) End [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Color [Color](https://docs.plaguecheat.cc/types/color) Rounding Integer Rounding is an optional parameter, if left without a value, it will be set to 0 ### [](https://docs.plaguecheat.cc/reference#drawrectfilled) **DrawRectFilled** Renders a filled rectangle on game screen Copy Renderer.DrawRectFilled(Vector2D(100, 100), Vector2D(200, 200), Color(255, 255, 255, 255)) Start [Vector2D](https://docs.plaguecheat.cc/types/vector2d) End [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Color [Color](https://docs.plaguecheat.cc/types/color) Rounding Integer Rounding is an optional parameter, if left without a value, it will be set to 0 ### [](https://docs.plaguecheat.cc/reference#getscreensize) **GetScreenSize** #### [](https://docs.plaguecheat.cc/reference#returns-dimensions-of-screen) Returns dimensions of screen Copy Renderer.GetScreenSize() ### [](https://docs.plaguecheat.cc/reference#createtexturefrombase64) **CreateTextureFromBase64** #### [](https://docs.plaguecheat.cc/reference#creates-an-image-from-base64-string) Creates an image from base64 string Copy local texture = Renderer.CreateTextureFromBase64(string, Vector2D(500, 500)) Name Type Texture Data String Initial Size [Vector2D](https://docs.plaguecheat.cc/types/vector2d) ### [](https://docs.plaguecheat.cc/reference#createtexturefrombytes) **CreateTextureFromBytes** #### [](https://docs.plaguecheat.cc/reference#creates-an-image-from-byte-array) Creates an image from byte array Copy local texture = Renderer.CreateTextureFromBytes(byte, Vector2D(500, 500)) Name Type Texture Data Byte Array Initial Size [Vector2D](https://docs.plaguecheat.cc/types/vector2d) ### [](https://docs.plaguecheat.cc/reference#drawtexture) **DrawTexture** #### [](https://docs.plaguecheat.cc/reference#renders-texture-on-screen) Renders texture on screen Copy Renderer.DrawTexture(texture, Vector2D(100, 100), Vector2D(100, 100)) Name Type Texture Texture Position [Vector2D](https://docs.plaguecheat.cc/types/vector2d) Size [Vector2D](https://docs.plaguecheat.cc/types/vector2d) [PreviousGetting Started](https://docs.plaguecheat.cc/getting-started) [NextGlobals](https://docs.plaguecheat.cc/reference/globals) Last updated 5 months ago --- # CConVar | Plague API ### [](https://docs.plaguecheat.cc/types#getint) **GetInt** Copy convar:GetInt() ### [](https://docs.plaguecheat.cc/types#getbool) **GetBool** Copy convar:GetBool() ### [](https://docs.plaguecheat.cc/types#getstring) **GetString** Copy convar:GetString() ### [](https://docs.plaguecheat.cc/types#getfloat) **GetFloat** Copy convar:GetFloat() [PreviousMenu](https://docs.plaguecheat.cc/reference/menu) [NextCGameEvent](https://docs.plaguecheat.cc/types/cgameevent) Last updated 5 months ago ---