injectBrowserMouseUp | Multi Theft Auto: Wiki Skip to content

injectBrowserMouseUp

Client-side
Server-side
Shared

This function injects a mouse click (state: up).

OOP Syntax Help! I don't understand this!

  • Method: browser:injectMouseUp(...)

Syntax

bool injectBrowserMouseUp ( browser webBrowser, string mouseButton )
Required Arguments
  • webBrowser: The browser.
  • mouseButton: The mouse button (Possible values: left, middle, right).

Returns

  • bool: result

Returns true if the click was successfully injected, false otherwise.

Code Examples

client
addEventHandler("onClientClick", root,
function(button, state)
if state == "down" then
injectBrowserMouseDown(browser, button)
else
injectBrowserMouseUp(browser, button)
end
end
)