SendPacket callback

Function parameters needed for SendPacket callback

  • type - integer

  • text_pkt - string

Example Script

AddCallback("SendPacket", function(type, text)
    log(("SendPacket callback, %d : %s"):format(type, text))
end)

Output

When SendPacket is called your callback function will be executed

SendPacket callback, 2 : action|input
|text|testing

Last updated