[RELEASE] Lua Callback system

Might I recommend that you write in the ability to send data via your callbacks. I’ve found it superrrrrr useful in my callback system being able to send data to the server via client to server callbacks and sending data to the client via server to client callbacks. I’ve mainly used it for checking if code on one side matches the other (mainly used to combat lua injectors editing client side code), but I’ve also found it handy doing other things as well.

[Example]

Callbacks:TriggerCallback('Mechanic:GetShopData', function(data)
    Data.CurrentShopInfo = data
end, Data.CurrentShop)

I can have 1 callback that handles getting the shop data, and I can send the current shop the player is at and pull data like that, rather than having a different callback for each shop.