What are callbacks?

Using callbacks you can get incoming data and have your script handle it accordingly

Example using AddCallback()

AddCallback("SendPacket", function(type, text)
    log("Wow! a packet was sent")
end)

Currently available callbacks

  • SendPacket

  • SendPacketRaw

  • VariantList

Soon to come

  • Render (for making your own GUI Components with Lua)

Last updated