Cursor.visible

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Client-Side
Function

Js.png 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