ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setCursorAlpha

Function

setCursorAlpha

ClientCursorIdentical to MTA:SA

Sets the in-game cursor alpha (0 = invisible, 255 = opaque). The cursor shown with showCursor is drawn by the game, above the HUD, GUI and browsers, so the alpha also shows on screenshots.

Syntax

bool setCursorAlpha(int alpha)

Arguments

alphaint
Alpha 0-255.

Returns

true on success.

Example

showCursor(true)
setCursorAlpha(120)

See also