âïļ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
Called every frame.
Use to draw with the render namespace.
on_paint_traverse
Called every frame.
Use this to call surface functions with ffi.
on_frame_stage_notify
Called when on a specific frame.
pre_original
boolean
whether or not frame_stage_notify has been called yet
on_setup_move
Called every game tick before the command is used internally.
Use to call movement-related things.
on_run_command
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
Called every game tick after everything internally has finished.
Use to run something on a per-tick basis that does not modify commands.
on_input
Called on wndproc.
wParam
number
used to pass values with specific messages
lParam
number
used to pass values with specific messages
on_console_input
input
string
console input
on_shutdown
Called when the script is unloaded.
on_shot_registered
Called after a shot has been fired.
Use to get information about shots.
on_level_init
Called after the map has loaded.
on_game_event
Called on any game event.
on_xxx
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
Called after post processing has finished.
on_config_load
Called after a config is loaded.
on_config_save
Called after a config has been saved.
on_esp_flag
index
integer
index of player drawing
Return a table of flags that you want to add
on_draw_model_execute
dme
function
calls dme (draws the model)
ent_index
integer
entity's index
model_name
string
model's name
Player callbacks
on_player_connect
Called after a player has connected.
on_player_disconnect
Called after a player has disconnected.
on_player_spawn
Called after a player has spawned.
on_player_hurt
Called after a player has been hurt.
on_player_death
Called after a player has died.
Last updated