Skip to main content

Ui::displayRadar

Function to set whether Minimap / Radar should be displayed.

Client-side function

JavaScript​

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#​

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