Skip to content

function isMouseBtnPressed (client-side)

Available since version: 0.3.0

This function will return whether a mouse button is currently pressed.

Declaration

boolean isMouseBtnPressed(number button)

Parameters

  • number button: Mouse button identifier. For more information, see Mouse Constants.

Returns boolean

True if the button is currently pressed, otherwise false.