12.06.2015, 03:42
Everything user Abagail said, PLUS you can create custom callbacks with y_hooks, and call all hooked versions of your custom callback with CallLocalFunction. You can do the same with CallRemoteFunction to affect other loaded scripts too, but if callback and its hooks are used only in one script, CallLocalFunction is bit faster.