FluxWareScripting
Back to site

packets

Identify and drop packets, inside packetsend and packetreceive handlers. Reading fields, constructing and mutating are not in v1.

Functions

4 functions. Signatures are generated from the client, so they describe the build you are running.

packets.name() -> string

The packet's simple class name, e.g. 'PlayerMoveC2SPacket'. The same string the event handler receives as its argument.

packets.isSent() -> boolean

Outgoing rather than incoming.

packets.isReceive() -> boolean
packets.cancel()

Drops the packet. Equivalent to returning false from the handler.