Ui::displayRadar

From RAGE Multiplayer Wiki
(Redirected from RAGE.Game.Ui.DisplayRadar)
Jump to navigation Jump to search

Function to set whether Minimap / Radar should be displayed.

Client-Side Function

C.png C# Js.png JavaScript


JavaScript Syntax
Jslogo.png

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
C.png

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