GlobalGlobalsSoundCheatLocalWorldInputRenderUIConvarEventEntityTraceUserCMDAntiAimExploitRagebotMaterial__filename:
string
Filename of the currently running script.
Warning: The usage of this module is discouraged. The
Globalmodule is just purely linking to existing functions from other modules and therefore totally unneeded.
Global.Print(text:
string)
This is an alias for Cheat.Print, use it instead.
string)This is an alias for Cheat.PrintChat, use it instead.
RGBA, text: string)This is an alias for Cheat.PrintColor, use it instead.
string, fn: string)This is an alias for Cheat.RegisterCallback, use it instead.
string)This is an alias for Cheat.ExecuteCommand, use it instead.
numberThis is an alias for Cheat.FrameStage, use it instead.
numberThis is an alias for Globals.Tickcount, use it instead.
numberThis is an alias for Globals.Tickrate, use it instead.
numberThis is an alias for Globals.TickInterval, use it instead.
numberThis is an alias for Globals.Curtime, use it instead.
numberThis is an alias for Globals.Realtime, use it instead.
numberThis is an alias for Globals.Frametime, use it instead.
numberThis is an alias for Local.Latency, use it instead.
AngleThis is an alias for Local.GetViewAngles, use it instead.
Angle)This is an alias for Local.SetViewAngles, use it instead.
stringThis is an alias for World.GetMapName, use it instead.
Path): booleanThis is an alias for Input.IsKeyPressed, use it instead.
Vector2This is an alias for Render.GetScreenSize, use it instead.
Vector2This is an alias for Input.GetCursorPosition, use it instead.
string)This is an alias for Sound.Play, use it instead.
string)This is an alias for Sound.PlayMicrophone, use it instead.
This is an alias for Sound.StopMicrophone, use it instead.
stringThis is an alias for Cheat.GetUsername, use it instead.
string)This is an alias for Local.SetClanTag, use it instead.
Globals.Tickcount():
number
Returns the tick the server is on.
numberReturns the server's tickrate. The tickrate is how many ticks the server processes each second.
numberReturns the time between each tick.
This is equivalent to: 1 / Globals.Tickrate()
numberReturns the time of the server in seconds.
numberReturns the time in seconds since the game started.
numberReturns the time the last frame took to render. To convert to FPS use:
Math.floor(1 / Globals.Frametime())Sound.Play(filename:
string)
Plays a sound from a .wav file.
string)Plays a sound from a .wav file over the voicechat.
Interrupts the currently playing sound from Sound.PlayMicrophone.
Cheat.GetUsername():
string
Returns the name of the steam account at the point of the injection.
string, name: string)Registers a callback, check the Callbacks documentation for more information.
// function name must be declared globally
function onCreateMove() {
// this gets called every tick
}
Cheat.RegisterCallback("CreateMove", "onCreateMove") // use the function NAME as stringstring)Executes a command in the CS:GO console.
// TODO: better example :kek:
Cheat.ExecuteCommand("say I'm using OTC (chams.cc)") // cringenumberReturns the current framestage.
| Stage | Meaning |
|---|---|
| 0 | Frame Start |
| 1 | Frame NetUpdate Start |
| 2 | Frame NetUpdate PostDataUpdate Start |
| 3 | Frame NetUpdate PostDataUpdate End |
| 4 | Frame NetUpdate End |
| 5 | Frame Render Start |
| 6 | Frame Render End |
string)Prints text into the CS:GO console.
A newline \n is not automatically appended, so make sure you include one.
string)Prints text into your local chat (only you can see it).
You can use special bytes to change the color:
| Byte | Color | Byte | Color | Byte | Color | Byte | Color | |||
|---|---|---|---|---|---|---|---|---|---|---|
| \x01 | White | \x05 | Lighter green | \x09 | Gold | \x0D | Dark purple | |||
| \x02 | Dark red | \x06 | Light green | \x0A | Gray | \x0E | Light purple | |||
| \x03 | Purple | \x07 | Red | \x0B | Aqua | \x0F | Light red | |||
| \x04 | Green | \x08 | Gray | \x0C | Blue |
Warning: The first character cannot be a color changing byte, adding a space at the start of the string fixes this issue.
RGBA, text: string)Same as Cheat.Print but colored.
Local.Latency():
number
Returns your latency to the server in seconds.
AngleReturns your current viweangles.
function onDraw() {
const angles = Global.GetViewAngles();
Render.String(5, 5, 0, "Angles: pitch=" + angles[0] + " yaw=" + angles[1] + " roll=" + angles[2], [255, 0, 0, 255]);
}
Global.RegisterCallback("Draw", "onDraw");Angle)Sets your current viewangles to the specified one.
string)Changes your clantag to the specified one.
numberReturns the yaw of your real.
numberReturns the yaw of your fake.
numberReturns the spread of your selected gun.
numberReturns the inaccuracy of your selected gun with other factors calculated (e.g. moving inaccuracy)
World.GetMapName():
string
Returns the current map name. (e.g. de_dust2, de_mirage)
stringReturns the current server (ip, port, offline match, ...) as a string.
This is used in the watermark.
Input.GetCursorPosition():
Vector2
Returns the current position of the cursor (mouse).
number): booleanReturns if the key is currently pressed.
For possible keys check Virtual Key Codes.
Note: Can only be used during a
Drawcallback.
Render.String(x:
number, y: number, align: number, text: string, color: RGBA, size: Size)
Renders the string text at the position x|y on the screen.
align === 0 is left-aligned and everything else is centered.size is optional.
// this will render a red colored string at the top left of the screen
Render.String(0, 0, 0, "Hello World", [255, 0, 0, 255]); string, size: Size): Vector2Returns width and height the text would need to be rendered.
number, y1: number, x2: number, y2: number, color: RGBA)Renders a line from x1|y1 to x2|y2.
number, y: number, width: number, height: number, color: RGBA)Renders the outline of a rectangle at x|y with the specified width and height.
number, y: number, width: number, height: number, color: RGBA)Renders a filled reactangle at x|y with the specified width and height.
number, y: number, width: number, height: number, direction: number, color1: RGBA?, color2: RGBA?)Renders a gradient reactangle at x|y with the specified width and height.
number, y: number, radius: number, color: RGBA)Renders a circle at x|y with the specified color and radius.
number, y: number, radius: number, color: RGBA)Renders a circle at x|y with the specified color and radius.
RGBA)Renders a polygon/triangle, the 3 corners are the points list.
function onDraw() {
// draws a simple red polygon
Render.Polygon([[50, 0], [25, 50], [75, 50]], [255, 0, 0, 255]);
}
Cheat.RegisterCallback("Draw", "onDraw");Vector3): Vector2Transforms a world position to a screen position.
string, size: number, weight: number): numberCreates a new font with the specified name, size and weight, and returns its font identifier.
string, size: number, weight: number): numberReturns font identifier.
Returns 0 if the font is not found.
number, y: number, align: number, text: string, color: RGBA, font: number)Renders the string text at x|y with a custom font (see also Font).
Renders the texture at x|y with the specified width and height.
string): numberReturns a texture loaded from a file.
string, font: number): Vector2Like Render.TextSize but for custom fonts.
Vector2Returns the width and height of the screen (not the CS:GO window!).
UI.GetValue(path:
Path)
Returns the value of the specified UI element.
function getFakelag() {
if(!UI.GetValue("Anti-Aim", "Fake-Lag", "Enabled"))
return 0; // fakelag disabled
return UI.GetValue("Anti-Aim", "Fake-Lag", "Limit");
}Path, value)Sets the value of the specified UI element.
function disableFakeLag() {
UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", false);
}
function toggleFakeLag() {
var fakelag_enabled = UI.GetValue("Anti-Aim", "Fake-Lag", "Enabled");
UI.SetValue("Anti-Aim", "Fake-Lag", "Enabled", !fakelag_enabled);
}string)Creates a checkbox element in the scripting section.
Returns the path to it as a list.
string, min: number, max: number)Creates a slider element with the specified range in the scripting section.
Returns the path to it as a list.
string, min: number, max: number)Creates a slider element with the specified range in the scripting section.
Returns the path to it as a list.
string)Creates a hotkey element in the scripting section.
Returns the path to it as a list.
Use UI.IsHotkeyActive to check if the hotkey is active.
string)Creates a label element in the scripting section.
string, options)Creates a dropdown element in the scripting section.options is a list of string.
Returns the path to it as a list.
UI.GetValue on a dropdown returns a zero-indexed number
UI.AddDropdown("sample dropdown", ["option 0", "option 1", "option 2"])
// by default the first option is selected
UI.GetValue("sample dropdown") // 0
UI.SetValue("sample dropdown", 2) // sets dropdown to "option 2"string, options)Creates a mnlti dropdown element in the scripting section.options is a list of string.
Returns the path to it as a list.
UI.GetValue on a dropdown returns a number which has the bits of the active options set.
UI.AddMultiDropdown("sample multidropdown", ["option 0", "option 1", "option 2"])
UI.GetValue("sample multidropdown") // 0, because nothing is set
UI.SetValue("sample multidropdown", 0b101) // selects option 0 and 2 (bitwise)
UI.GetValue("sample multidropdown") // 5, because option 0 and 2 are setstring)Creates a colorpicker element in the scripting section.
Returns the path to it as a list.
string)Creates a textbox element in the scripting section.
Returns the path to it as a list.
Path, value: boolean)Enables/disables the checkbox at the specified path.
Path): stringReturns the string in the textbox at the specified path.
Path): RGBAReturns the selected color from the colorpicker at the specified path.
Path, color: RGBA)Sets the color at the specified path to the specified color.
Path): booleanReturns whether the hotkey at the specified path is active or not.
Path): numberToggles the hotkey at the specified path.
Returns the new active state. (0 = inactive, 1 = active)
booleanReturns if the menu is opened.
Convar.GetInt(name:
string): number
Returns the current value of the specified console variable.
string, value: number)Sets the value of the specified console variable to the specified value.
string): numberReturns the current value of the specified console variable.
string, value: number)Sets the value of the specified console variable to the specified value.
string): stringReturns the current value of the specified console variable.
string, value: string)Sets the value of the specified console variable to the specified value.
Note: Can only used during a
Callbacks.
Event.GetInt(name:
string): number
Returns the integer representation of the specified variable.
string): numberReturns the floating point representation of the specified variable.
string): stringReturns the string representation of the specified variable.
Entity.GetEntities(): Array[
number]
Returns the entityindex of every entity.
number): Array[number]Returns the entityindex of every entity with that class id.
number]Returns the entityindex of every player.
number]Returns the entityindex of every enemy.
number]Returns the entityindex of every teammates.
numberReturns the entityindex of yourself.
numberReturns the entityindex of the gamerules proxy.
// TODO: maybe link to some information about the GameRulesProxy?
number): numberReturns the entityindex of the player with the matching user id.
number): booleanReturns if the entity is a teammate.
number): booleanReturns if the entity is an enemy.
number): booleanReturns if the entity is a bot.
number): booleanReturns if the entity is yourself.
number): booleanReturns if the entity is valid (e.g. exists, player is still connected, ...).
number): booleanReturns if the entity is alive.
number): booleanReturns if the entity is dormant.
number): numberReturns the class id of the entity.
NOTE: Class ids sometimes change during game updates, and shouldn't be used for identification.
UseEntity.GetClassNameinstead.
number): stringReturns the name of the class the entity belongs to.
number): stringReturns the display name of the entitiy.
NOTE: Do not use this to differentiate between items, because this language dependent.
Doing so, will make your script only work in a specific game language.
number): numberReturns the current held weapon's entityindex by the entity.
var lp = Entity.GetLocalPlayer();
if(Entity.IsAlive(lp)) {
var weapon = Entity.GetWeapon(lp);
Cheat.Print("holding: " + Entity.GetClassName(weapon));
}number): Array[number]Returns the entityindex of every weapon the entity has (primary weapon, pistol, knife, zeus, grenades, ...)
number): Vector3Returns position of the entity.
number)Returns the render box of the entity as an array:
[visible: boolean, min_x: number, min_y: number, max_x: number, max_y: number]
number, table: string, propname: string)Returns the value of the specified prop.
table will be the entity's classname most of the time (CCSPlayer for players).
number, table: string, propname: string, value)Sets the specified prop to the specified value.
table will be the entity's classname most of the time (CCSPlayer for players).
number, bone: Bone): Vector3Returns the position of the bone.
number): Vector3Returns the position of the "eye" of the entity (the place where bullets come from).
Trace.Line(entityindex:
number, start: Vector3, end: Vector3)
Traces a line between start and end, ignoring the specified entity.
[target: number, fraction: number]
target is the entityindex of what was hitfraction has 3 possible values:number, target: number, start: Vector3, end: Vector3)Traces a bullet between start and end.
Returns undefined if the target is not hit.
[target: number, damage: number, visibility: boolean, hitbox: number]
target is the entityindex from the function calldamage is the damage your current gun would dealvisibility is whether the target is visiblehitbox is the hitbox that gets hit, see also: HitboxWarning: If you've teamcheck on, this will return 0 damage on teammates and yourself!
NOTE: This can only be used during a
CreateMovecallback.
UserCMD.SetMovement(movement:
Vector3)
Sets the movement for the current user command.
Vector3Returns the planned movement for the current user command.
Vector3)Sets the viewangles for the current user command.
boolean)Forces yourself to jump (or not) in this user command.
boolean)Forces yourself to crouch (or not) in this user command.
AntiAim.GetOverride():
number
Returns whether the antiaim is being managed by a script.1 means it is and 0 means it isn't.
number)Enables/disables management of the antiaim.
Warning: A
booleanis not supported.
Use0instead offalseand1instead oftrue.
number)Sets the offset of your real (relative to your AntiAim.SetFakeOffset).
Degrees should be between -58 and 58.
number)Sets your yaw offset (relative to -180).
Degrees should be between -180 and 180.
number)Sets the offset of your fake (relative to your AntiAim.SetFakeOffset).
Degrees should be between -58 and 58.
Exploit.GetCharge():
number
Returns the current doubletap charge percentage between 0 and 1 and -1 if disabled.
Forces the ragebot to recharge the doubletap as soon as possible.
Disables automatic recharge.
Enables automatic recharge.
Note: Can only be used during a
CreateMovecallback.
Ragebot.GetTarget():
number
Returns the entityindex of the targetted entity.
Returns 0 if no entity is being targetted.
number)Ignores the specified entity for the current tick.
number)Forces the ragebot to shoot the specified entity for the current tick.
number)Forces the ragebot to only shoot safepoint for the specified entity for the current tick.
number, hitchance: number)Forces the ragebot to only shoot with at least the specified hitchance for the specified entity for the current tick.
Hitchance is a number between 0 and 100.
number, damage: number)Forces the ragebot to shoot for at least the specified damage for the specified entity for the current tick.
Damage 0 is treated as dynamic min damage.
Damage over 100 is treated as HP + (damage - 100).
Hitbox)Forces the ragebot to only shoot safepoint of the specified hitbox for the current tick.
Useful ressources:
Material.Create(name:
string): boolean
Creates a material and returns if the creation was successful.
The material is added to the "Visible type" dropdown in the chams section of the menu.
string): booleanDestroys a material and returns if the destruction was successful.
string): numberReturns the materialindex of the material.
The materialindex may change between callback execution, so don't store the index.
Note: Can only be called during a
Materialcallback.
number, key: string, value: string)Overrides value of the material.
Note: Can only be called during a
Materialcallback.
number)Refreshes the material with the new values set using Material.SetKeyValue.
Note: Can only be called during a
Materialcallback.