Cursor.visible: Difference between revisions
MrPancakers (talk | contribs) (Created page with "{{ClientsideJsFunction}} Get/Set the visibility of your cursor. == Syntax == <pre> mp.gui.cursor.visible = visibility; </pre> === Parameters === *'''visibility''': {{RageT...") |
MrPancakers (talk | contribs) m (→See Also) |
||
| Line 25: | Line 25: | ||
== See Also == | == See Also == | ||
{{Cursor_definition_c}} | |||
Latest revision as of 05:21, 13 February 2019
Client-Side Function
Get/Set the visibility of your cursor.
Syntax
mp.gui.cursor.visible = visibility;
Parameters
- visibility: Boolean
Examples
This lets you enable the cursor by pressing the F2 key.
Client-Side
mp.keys.bind(0x71, true, function() { // F2
mp.gui.cursor.visible = true;
});
See Also
- Functions:
- Properties: