Cursor.show: Difference between revisions
m (Replaced HTML with template) |
|||
| Line 1: | Line 1: | ||
Show or hide the cursor on your screen | Show or hide the cursor on your screen | ||
==Syntax== | ==Syntax== | ||
{{ | {{ClientsideCode| | ||
< | <pre> | ||
mp.gui.cursor.show(freezeControls, visibility); | mp.gui.cursor.show(freezeControls, visibility); | ||
</ | </pre> | ||
}} | |||
===Required arguments=== | ===Required arguments=== | ||
| Line 11: | Line 13: | ||
==Example== | ==Example== | ||
{{ClientsideCode| | |||
<pre> | |||
< | |||
mp.gui.cursor.show(true, true); //Disables the players controls and shows the cursor | mp.gui.cursor.show(true, true); //Disables the players controls and shows the cursor | ||
</ | </pre> | ||
}} | |||
==See also== | ==See also== | ||
{{Gui_definition_c}} | {{Gui_definition_c}} | ||
[[Category:Clientside API]] | [[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