Cursor.visible

From RAGE Multiplayer Wiki
Revision as of 05:21, 13 February 2019 by MrPancakers (talk | contribs) (→‎See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



Get/Set the visibility of your cursor.

Syntax

mp.gui.cursor.visible = visibility;

Parameters

  • visibility: Boolean

Examples

This lets you enable the cursor by pressing the F2 key.

Client-Side
mp.keys.bind(0x71, true, function() {   // F2
    mp.gui.cursor.visible = true;
});

See Also