BlockServerEvent

Block or unblock an inbound server event by name. Blocked events are dropped before the client ever sees them.

Syntax

Susano.BlockServerEvent(block, eventName) -> void

Parameters

block (boolean): true to block the event, false to unblock it.

eventName (string): The server-event name to block or unblock.

Return(s)

None

Behavior

When an event is blocked, it is dropped before the game client can dispatch or process it.

The block list is shared with the UI event logger: anything you block from Lua also shows up as blocked in the logger, and vice versa.

Example(s)

-- Block a single server event
Susano.BlockServerEvent(true, "sm")

-- Block multiple events
Susano.BlockServerEvent(true, "blev")
Susano.BlockServerEvent(true, "fc")

-- Unblock an event
Susano.BlockServerEvent(false, "sm")