Cursor.show: Difference between revisions
MrPancakers (talk | contribs) (Added description, example and see also section) |
(→Syntax) |
||
| Line 3: | Line 3: | ||
{{ClientSide}} | {{ClientSide}} | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.gui.cursor.show(visibility | mp.gui.cursor.show(freezeControls, visibility); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required arguments=== | ===Required arguments=== | ||
*'''freezeControls''': {{RageType|boolean}} | |||
*'''visibility''': {{RageType|boolean}} | *'''visibility''': {{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