GlobalGlobalsSoundCheatLocalWorldInputRenderUIConvarEventEntityTraceUserCMDAntiAimExploitRagebotMaterialViewDataFile__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.
boolean)This is an alias for Input.ForceCursor, 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())numberThis is an alias for Cheat.FrameStage, use it instead.
numberReturns how many commands have been choked in a row.
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.
string, color: RGBA?)Prints text into onetap's log in the top left.
number): booleanReturns if the weapon's configuration is active in the ragebot tab.
Note: This takes the weapon's
m_iItemDefinitionIndex:Cheat.IsRageConfigActive(Entity.GetProp(weapon, "CBaseAttributableItem", "m_iItemDefinitionIndex") & 0xFFFF)
number): booleanReturns if the weapon's configuration is active in the legitbot tab.
Note: This takes the weapon's
m_iItemDefinitionIndex:Cheat.IsLegitConfigActive(Entity.GetProp(weapon, "CBaseAttributableItem", "m_iItemDefinitionIndex") & 0xFFFF)
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)
Vector3Returns the camera's position.
AngleReturns the camera's angles.
Vector3)Sets the camera's position.
Angle)Sets the camera's angles.
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.
boolean)Forces your cursor to be visible or invisible.
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.GetChildren(path:
Path): Array[string]
Returns all children of the specified UI element.
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);
}Path, name: string)Registers a callback which will be called everytime the specified UI element's value is changed.
Path, name: string): Array[string]Creates a checkbox element at the specified path.
Returns the path to it as a list.
Path, name: string, min: number, max: number): Array[string]Creates a slider element with the specified range at the specified path.
Returns the path to it as a list.
Path, name: string, min: number, max: number): Array[string]Creates a slider element with the specified range at the specified path.
Returns the path to it as a list.
Path, name: string, shortname: string?): Array[string]Creates a hotkey element at the specified path.shortname is used for displaying in the hitbox state list (optional), use an empty string to hide the hotkey from the list.
Returns the path to it as a list.
Use UI.GetHotkeyState to check if the hotkey is active.
Path, name: string, options: Array[string], searchable: boolean?): Array[string]Creates a dropdown element at the specified path.
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"Path, name: string, options: Array[string]): Array[string]Creates a mnlti dropdown element at the specified path.
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 setPath, name: string): Array[string]Creates a colorpicker element at the specified path.
Returns the path to it as a list.
Path, name: string): Array[string]Creates a textbox element at the specified path.
Returns the path to it as a list.
Path, name: string): Array[string]Creates a new subtab at the specified path.
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, value: boolean)Sets the hotkey state of the specified hotkey.
Path): booleanReturns the hotkey state of the specified hotkey.
Path): numberReturns the key the specified hotkey is bound to.
booleanReturns if the menu is opened.
Vector2Returns the position of the top left corner of the menu.
Path)Removes the UI element at the specified path.
Path, options: Array[string])Updates the options of a dropdown or multidropdown.
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).
string)Returns information about the weapon:
| Name | Type | Description |
|---|---|---|
| price | number |
weapon price |
| kill_award | number |
reward for killing an enemy |
| cycle_time | number |
--- |
| cycle_time_alt | number |
--- |
| damage | number |
base damage |
| armor_ratio | number |
armor penetration |
| penetration | number |
wall penetration |
| range | number |
max range before bullets despawn |
| max_speed | number |
max running speed |
| max_speed_alt | number |
--- |
| max_clip | number |
bullets per clip |
| spread | number |
spread |
| spread_alt | number |
--- |
| inaccuracy_crouch | number |
crouching inaccuracy |
| inaccuracy_crouch_alt | number |
--- |
| inaccuracy_stand | number |
standing inaccuracy |
| inaccuracy_stand_alt | number |
--- |
| inaccuracy_jump_initial | number |
initial jumping inaccuracy |
| inaccuracy_jump_apex | number |
apex jumping inaccuracy |
| inaccuracy_jump | number |
jumping inaccuracy |
| inaccuracy_jump_alt | number |
--- |
| inaccuracy_land | number |
landing inaccuracy (after jump) |
| inaccuracy_land_alt | number |
--- |
| inaccuracy_ladder | number |
ladder inaccuracy |
| inaccuracy_ladder_alt | number |
--- |
| inaccuracy_fire | number |
--- |
| inaccuracy_fire_alt | number |
--- |
| inaccuracy_move | number |
moving inaccuracy |
| inaccuracy_move_alt | number |
--- |
| inaccuracy_reload | number |
--- |
number, label: string, color: RGBA)Adds a text with the color to the entity's esp.
number)Prevents the entity from appearing on esp.
number)Returns the player's STEAM64 ID.
// TODO: return?
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, start: Vector3, end: Vector3, mask: number, mode: number)Traces a line between start and end, ignoring the specified entity.
maskmode has 3 possible values:Return is the same as Trace.Line
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!
Vector3, end: Vector3): booleanReturns whether the line goes through a smoke or not.
Warning: Enabling remove smoke, will make this function return false.
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.
Angle, silent: boolean)Sets the view angles for the current user command.
Buttons)Sets the buttons for the current user command.
ButtonsReturns the buttons for the current user command.
number)Sets the mouse's x position for the current user command.
number)Sets the mouse's y position for the current user command.
Chokes the current user command.
Unchokes 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.
numberReturns the networked tickbase.
numberReturns the predicted tickbase.
number)Overrides the exploit tolerance.
number)Overrides the amount of shifted ticks.
number)Overrides the cheat's limit for shifted ticks.
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.
numberReturns the chance of hitting the current targetted entitiy.
number]Returns all possible ragebot targets.
number)Ignores the specified entity for the current tick.
number, hitbox: Hitbox)Ignores the specified hitbox of 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, hitbox: Hitbox)Forces the ragebot to only shoot safepoint for the specified hitbox of 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.
View.Create():
number
Creates a new view and returns its index.
number, width: number, height: number, origin: Vector3, angles: Angle)Teleports the view to the specified origin looking in the specified direction.
Also sets the resolution of the view to the spcified width and height.
Warning: This can only be called during a
FRAME_RENDER_STARTcallback.
number, x: number, y: number, width: number, height: numberRenders the view at the specified position on your screen with the specified width and height.
Warning: This can only be called during a
Drawcallback.
number, position: Vector3): Vector2Like Render.WorldToScreen but from the view's point of view.
DataFile.Load(filename:
string)
Loads data from a file.
string)Saves the data to the file.
string, key: string, value: string)Sets the specified key of the specified file to the specified value.
string, key: string): stringReturns the value of the specified key of the specified file.
string, key: string)Erases the specified key of the specified file.