SendPacketRaw callback

Function parameters needed for SendPacket callback

  • packet_raw - GameUpdatePacket table

Example Script

AddCallback("SendPacketRaw", function(packet_raw)
    log(("SendPacketRaw callback\ntype %d\nflags %d\npos x %d\npos y %d"):format(packet_raw.type, packet_raw.flags, packet_raw.pos_x, packet_raw.pos_y))
end)

Output

When SendPacketRaw is called your callback function will be executed

SendPacketRaw callback
type 0
flags 32
pos x 40
pos y 1634

Last updated