Ui::displayRadar: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
<syntaxhighlight lang="javascript">mp.game.ui.displayRadar(Toggle);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.displayRadar(Toggle);</syntaxhighlight>


===Required Argument===
{{Parameters}}
* '''Toggle:''' {{RageType|Boolean}}
* '''Toggle:''' {{RageType|Boolean}} - <code>true</code> to display radar, otherwise <code>false</code>.


===Return value===
===Return value===
* {{RageType|Number}}
* {{RageType|Number}}


===Example===
{{Example}}
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.game.ui.displayRadar(true); // Display the Radar
mp.game.ui.displayRadar(true); // Display the Radar
Line 21: Line 21:
<syntaxhighlight lang="csharp">RAGE.Game.Ui.DisplayRadar(Toggle);</syntaxhighlight>
<syntaxhighlight lang="csharp">RAGE.Game.Ui.DisplayRadar(Toggle);</syntaxhighlight>


===Required Argument===
{{Parameters}}
* '''Toggle:''' {{RageType|bool}}
* '''Toggle:''' {{RageType|bool}} - <code>true</code> to display radar, otherwise <code>false</code>.
 
{{Example}}
<syntaxhighlight lang="csharp">
RAGE.Game.Ui.DisplayRadar(true); // Display the Radar
RAGE.Game.Ui.DisplayRadar(false); // Hide the Radar
</syntaxhighlight>
}}
}}



Latest revision as of 16:26, 14 May 2019

Function to set whether Minimap / Radar should be displayed.

Client-Side Function

 C#  JavaScript


JavaScript Syntax

mp.game.ui.displayRadar(Toggle);

Parameters

  • Toggle: Boolean - true to display radar, otherwise false.

Return value

  • Number

Example

mp.game.ui.displayRadar(true); // Display the Radar
mp.game.ui.displayRadar(false); // Hide the Radar



C# Syntax

RAGE.Game.Ui.DisplayRadar(Toggle);

Parameters

  • Toggle: bool - true to display radar, otherwise false.

Example

RAGE.Game.Ui.DisplayRadar(true); // Display the Radar
RAGE.Game.Ui.DisplayRadar(false); // Hide the Radar



See also