Cursor.show: Difference between revisions
MrPancakers (talk | contribs) (Added description, example and see also section) |
m (Replaced HTML with template) |
||
| (2 intermediate revisions by one other user not shown) | |||
| 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(visibility | mp.gui.cursor.show(freezeControls, visibility); | ||
</ | </pre> | ||
}} | |||
===Required arguments=== | ===Required arguments=== | ||
*'''freezeControls''': {{RageType|boolean}} | |||
*'''visibility''': {{RageType|boolean}} | *'''visibility''': {{RageType|boolean}} | ||
==Example== | ==Example== | ||
{{ClientsideCode| | |||
<pre> | |||
< | mp.gui.cursor.show(true, true); //Disables the players controls and shows the cursor | ||
mp.gui.cursor.show(true, true); // | </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