πŸ“žCallbacks list

How to use game events:

Official CS:GO events
cheat.push_callback("on_event", function(event)
    if (event:get_name() == "player_hurt") then
        --- code
    end
end)

How to use callbacks:

on_paint

Fired every frame. Most functions from the render namespace can only be used here.

cheat.push_callback("on_paint", function()
    render.rect_filled(200, 200, 100, 20, color(255, 255, 255, 255))
end)

on_createmove

Fired every time the game prepares a move command. Use the parameter passed by the callback to access the UserCmd.

cheat.push_callback("on_createmove", function(cmd)
    cmd.viewangles.z = 50
end)

after_prediction

Use the parameter passed by the callback to access the UserCmd.

cheat.push_callback("after_prediction", function(cmd)
    cmd.viewangles.z = 50
end)

πŸ”— struct UserCmd

Name
Type
Description

forwardmove

number

Forward / backward speed

sidemove

number

Left / right speed

upmove

number

Up / down speed

viewangles

vector

Player view angles

buttons

number

Player buttons

command_number

number

Current command number

on_frame_net

Stages - enum_frames

cheat.push_callback("on_frame_net", function(stage)
    if (stage == enum_frames.frame_start) then
        cheat.notify("frame_start")
    end
end)

on_override_view

Fired every time the game prepares camera view.

cheat.push_callback("on_override_view", function(view)
    view.fov = 20
end)
Name
Type
Description

fov

number

-

angles

vector

-

origin

vector

-

height

number

-

height_old

number

-

width

number

-

width_old

number

-

viewmodel_fov

number

-

x

number

-

x_old

number

-

y

number

-

y_old

number

-

on_unload

Fired when the script is about to unload.

cheat.push_callback("on_unload", function()
    cheat.notify("Script unloaded!")
end)

on_shot

Fired every time the aimbot shoots at a player.

cheat.push_callback("on_shot", function(shot_info)
    cheat.notify(shot_info.target_name)
end)
Name
Type
Description

target_name

string

Target name

result

string

Shot result

client_hitbox

string

Hitbox

server_hitbox

string

Hitbox

client_damage

number

Actual shot damage

server_damage

number

Actual shot damage

hitchance

number

Actual shot hit chance

backtrack

number

Amount of ticks the player was backtracked

aim_point

string

Actual shot aim point

Last updated