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''': {...")
 
(Added description, example and see also section)
Line 1: Line 1:
Show or hide the cursor on your screen
==Syntax==
==Syntax==
{{ClientSide}}
{{ClientSide}}
Line 8: Line 9:
*'''visibility''': {{RageType|boolean}}
*'''visibility''': {{RageType|boolean}}
*'''freezeControls''': {{RageType|boolean}}
*'''freezeControls''': {{RageType|boolean}}
==Example==
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<syntaxhighlight lang="javascript">
mp.gui.cursor.show(true, true); //Shows the cursor and disables the players controls
</syntaxhighlight>
</div>
==See also==
{{Gui_definition_c}}
[[Category:Clientside API]]

Revision as of 03:12, 13 June 2018

Show or hide the cursor on your screen

Syntax

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

Required arguments

  • visibility: boolean
  • freezeControls: boolean

Example

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

See also