Hook Functions

addHook(Hook Name Type > String, Type > LuaFunction, (Optional) Priority Type > Float)

Adds a function to Hooks. The given function is called every time the hook is triggered.
Higher priority hooks are executed first, if no priority is given it is set to 0.

triggerHook(Hook Name Type > String, Variables Type > Table)

Triggers the given (no return) hook. The first argument should be the trigger identifier.
The last argument should a table of variables, or an empty table.

triggerHookReturn(Hook Name Type > String, Value Type > String, Variables Type > Table)

Triggers the given (return) hook. The first argument should be the trigger identifier.
The second argument should be the starting value.
The last argument should a table of variables, or an empty table.
Returns the final value as a Type > String.