Cursor.show: Difference between revisions

From RAGE Multiplayer Wiki
(Added description, example and see also section)
Line 3: Line 3:
{{ClientSide}}
{{ClientSide}}
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.gui.cursor.show(visibility, freezeControls);
mp.gui.cursor.show(freezeControls, visibility);
</syntaxhighlight>
</syntaxhighlight>


===Required arguments===
===Required arguments===
*'''freezeControls''': {{RageType|boolean}}
*'''visibility''': {{RageType|boolean}}
*'''visibility''': {{RageType|boolean}}
*'''freezeControls''': {{RageType|boolean}}


==Example==
==Example==

Revision as of 08:12, 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); //Shows the cursor and disables the players controls

See also