IsMouseCaptured
Whether the script holds the mouse.
true from SetMouseCapture(true) until the mouse is given back: by the script, a reload of the scripts, the end
of the session, or a click nothing of the script heard.
Syntax
Section titled “Syntax”IsMouseCaptured()Returns
Section titled “Returns”boolean - true while the script holds the mouse
Example
Section titled “Example”function OnKey(key, pressed) if pressed and key == "escape" and IsMouseCaptured() then HideUiElement("bank") SetMouseCapture(false) endendSee also
Section titled “See also”SetMouseCapture · the The game’s UI for a script group of the index
