MISC
EnableOverlay
Shows or hides the ONYXS overlay.
Syntax
ONYX.EnableOverlay(state)Parameters
state(boolean) — Whether the overlay captures input.
Return(s)
None
Behavior
- Temporarily blocks in-game input while the overlay handles mouse interactions and draws its cursor.
- Useful when rendering the main menu or other interactive UI.
Example(s)
ONYX.EnableOverlay(true)