Cursor.show: Difference between revisions

From RAGE Multiplayer Wiki
Line 14: Line 14:
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.gui.cursor.show(true, true); //Shows the cursor and disables the players controls
mp.gui.cursor.show(true, true); //Disables the players controls and shows the cursor
</syntaxhighlight>
</syntaxhighlight>
</div>
</div>

Revision as of 08:14, 30 July 2018

Show or hide the cursor on your screen

Syntax

Client-Side
mp.gui.cursor.show(freezeControls, visibility);

Required arguments

  • freezeControls: boolean
  • visibility: boolean

Example

Client-Side
mp.gui.cursor.show(true, true); //Disables the players controls and shows the cursor

See also