events
List of valid events that can be passed into the callback system.
Example:
This would execute the code in the function every overlay frame.
platform.set_callback("paint", function()
print("We\'re in the drawing thread!")
end)Events:
paint
Fired every overlay frame, used to draw anything.
tick
Fired every one millisecond.
tick_slow
Fired every one second.
shutdown
Fired when a script is unloaded.
process_exit
Fired when targetted process is exited.
config_save
Fired when a config is saved.
config_load
Fired when a config is loaded.
menu_toggle
Fired when the menu is open or closed.
Last updated