hydra-lua-api
CtrlK
  • Basics
    • Printing data
    • Built-in functions list for Hydra
    • Sending packets to the server
      • Sending text packets
      • Sending game packets
      • Built-In Helper Functions for sending packets
    • Sending packets to the client
      • Sending game packets
      • Sending variant list
  • Inventory Data
  • Player Data
    • NetAvatar structure
    • Local Avatar
    • Getting world players
  • World Data
    • Table structure
    • Getting tile data
    • Getting world object data
  • Callbacks
    • What are callbacks?
    • SendPacket callback
    • SendPacketRaw callback
    • VariantList callback
    • OnObjectSpawn callback
Powered by GitBook
On this page
  • Example using AddCallback()
  • Currently available callbacks
  • Soon to come
  1. Callbacks

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)

PreviousCallbacksNextSendPacket callback

Last updated 2 months ago