Callbacks
Although this api does not use true callbacks, they will be referred to as such.
How to use
To create a callback you need to use one of the many names listed below to access them.
Callbacks
on_paint
Usage:
Called every frame.
Use to draw with the render namespace.
on_paint_traverse
Usage:
Called every frame.
Use this to call surface functions with ffi.
on_frame_stage_notify
Parameter
Datatype
Description
pre_original
boolean
whether or not frame_stage_notify has been called yet
Usage:
Called when on a specific frame.
on_setup_move
Parameter
Datatype
Description
cmd
user_cmd
user command
Usage:
Called every game tick before the command is used internally.
Use to call movement related things.
on_run_command
Parameter
Datatype
Description
cmd
user_cmd
user command
Usage:
Called for every tick in a choked cycle the moment it is going to be sent to the server, after the cheat's anti-aim has run.
Use to change angles without cheat interference. All angle changes will be movement corrected.
on_create_move
Parameter
Datatype
Description
cmd
user_cmd
user command
Usage:
Called every game tick after everything internally has finished.
Use to run something on a per-tick basis that does not modfy commands.
on_input
Parameter
Datatype
Description
wParam
number
used to pass values with specific messages
lParam
number
used to pass values with specific messages
Usage:
Called on wndproc.
on_console_input
Parameter
Datatype
Description
input
string
console input
on_shutdown
Usage:
Called when the script is unloaded.
on_shot_registered
Parameter
Datatype
Description
shot_info
shot_info
the shots information
Usage:
Called after a shot has been fired.
Use to get information about shots.
on_level_init
Usage:
Called after the map has loaded.
on_game_event
Parameter
Datatype
Description
event
game_event
game event
Usage:
Called on any game event.
on_xxx
Parameter
Datatype
Description
event
game_event
game event
Usage:
Called on a specific game event.
Read the list of events and prefix one with "on_" to set a callback to it.
on_do_post_screen_space_events
Usage:
Called after post processing has finished.
on_config_load
Usage:
Called after a config is loaded.
on_config_save
Usage:
Called after a config has been saved.
on_esp_flag
Parameter
Datatype
Description
index
integer
index of player drawing
Return a table of flags that you want to add
on_draw_model_execute
Parameter
Datatype
Description
dme
function
calls dme (draws the model)
ent_index
integer
entity's index
model_name
string
model's name
Player callbacks
on_player_connect
Parameter
Datatype
Description
event
game_event
game event
Usage:
Called after a player has connected.
on_player_disconnect
Parameter
Datatype
Description
event
game_event
game event
Usage:
Called after a player has disconnected.
on_player_spawn
Parameter
Datatype
Description
event
game_event
game event
Usage:
Called after a player has spawned.
on_player_hurt
Parameter
Datatype
Description
event
game_event
game event
Usage:
Called after a player has been hurt.
on_player_death
Parameter
Datatype
Description
event
game_event
game event
Usage:
Called after a player has died.
Last updated