- Documentation
- Client functions
- setCursorAlpha
Function
setCursorAlpha
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
getCursorAlphaReturns the cursor alpha (0-255).setCursorTypeChanges the game cursor shape. Without an argument the cursor goes back to changing shape by itself: over a link in a browser it turns into a hand, over a text field into an I-beam.showCursorShows or hides the mouse cursor. The cursor stays visible while at least one resource wants it, so hiding it in one resource does not close another's cursor. By default, while the cursor is shown, the ped controls are blocked.