AddHook
This function adds a global hook. Hooks are callback functions that will be executed when certain events occur.
Syntax
- AddHook(number hookid, number hook)
Parameters
- hookid: the ID of the hook to add.
- hook: a pointer to the hook function to add.
Example