Cursor.show: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "==Syntax== {{ClientSide}} <syntaxhighlight lang="javascript"> mp.gui.cursor.show(visibility, freezeControls); </syntaxhighlight> ===Required arguments=== *'''visibility''': {...")
 
m (Replaced HTML with template)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Show or hide the cursor on your screen
==Syntax==
==Syntax==
{{ClientSide}}
{{ClientsideCode|
<syntaxhighlight lang="javascript">
<pre>
mp.gui.cursor.show(visibility, freezeControls);
mp.gui.cursor.show(freezeControls, visibility);
</syntaxhighlight>
</pre>
}}


===Required arguments===
===Required arguments===
*'''freezeControls''': {{RageType|boolean}}
*'''visibility''': {{RageType|boolean}}
*'''visibility''': {{RageType|boolean}}
*'''freezeControls''': {{RageType|boolean}}
 
==Example==
{{ClientsideCode|
<pre>
mp.gui.cursor.show(true, true); //Disables the players controls and shows the cursor
</pre>
}}
 
==See also==
{{Gui_definition_c}}
[[Category:Clientside API]]

Latest revision as of 12:50, 26 October 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