Script API - v1.21.120.21
    Preparing search index...

    Class PacketReceivedBeforeEvent

    Sent as the server receives a network packet from a client. If cancelled, the server will not parse the network packet and will silently ignore it.

    Index

    Constructors

    Properties

    cancel: boolean
    packetId: PacketId

    The type of network packet.

    This property can't be read in early-execution mode.

    packetSize: number

    The size of the network packet in bytes.

    This property can't be read in early-execution mode.

    sender?: Player

    Which client sent the network packet to the game server.

    This property can't be read in early-execution mode.