EVENTS
BlockServerEvent
Blocks a server event so it is never sent.
Syntax
ONYX.BlockServerEvent(block, eventName)Parameters
block(boolean) — true to block the event, false to unblock it.eventName(string) — Server event to block or unblock.
Return(s)
None
Behavior
- Blocked events are dropped before the game client can dispatch or process them.
- The block list is shared with the UI event log: blocking in Lua also shows as blocked there.
Example(s)
ONYX.BlockServerEvent(true, "esx")
ONYX.BlockServerEvent(false, "esx")