Difference between revisions of "0581"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 0581=1,enable_radar %1d% | description = Hides or displays the radar. | p1 = integer value (0/1) | game = Vice City, [[San Andreas]…')
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{OpCode
+
{{Icon|VC}} {{Icon|SA}} '''DISPLAY_RADAR'''
| ini        = 0581=1,enable_radar %1d%
+
<hr />
| description = Hides or displays the radar.
+
'''Description'''
| p1          = integer value (0/1)
+
: Displays the "radar" mini-map
| game        = [[Vice City]], [[San Andreas]]
+
'''Syntax'''
}}
+
: 0581: enable_radar [''int'']
In Vice City, this opcode was used in the Hotring side mission.
+
'''Parameter'''
 +
: [''int'']
 +
:: 0 = hide, {{hint|1|or any value other than 0}} = show (default)
 +
'''Native analog'''
 +
: [[DISPLAY_RADAR]]
 +
This opcode displays the "radar" mini-map on the bottom left corner of the HUD. By default, the radar is set to show. Hiding the radar will remove the entire disc and all blips from the HUD.
  
== Sanny Builder example ==
+
== Example ==
 +
The following example, using Sanny Builder, will allow you to hide  and show the mini-map when you hold the CAMERA key.
 +
<source lang="scm">
 +
while true
 +
    wait 10
 +
    if
 +
        00E1:  key_pressed 0 13  // camera key
 +
    then
 +
        0581: enable_radar 0  // hide radar
 +
    else
 +
        0581: enable_radar 1  // display radar
 +
    end
 +
end
 +
</source>
  
<source lang="scm">0581: enable_radar 1 </source>
+
== Keywords ==
 +
toggle, set, display, show, hide, radar, minimap
  
==Keywords==
+
[[Category:OpCodes]]
radar
 

Latest revision as of 07:24, 31 December 2014

Vice City San Andreas DISPLAY_RADAR


Description

Displays the "radar" mini-map

Syntax

0581: enable_radar [int]

Parameter

[int]
0 = hide, 1 = show (default)

Native analog

DISPLAY_RADAR

This opcode displays the "radar" mini-map on the bottom left corner of the HUD. By default, the radar is set to show. Hiding the radar will remove the entire disc and all blips from the HUD.

Example

The following example, using Sanny Builder, will allow you to hide and show the mini-map when you hold the CAMERA key.

while true
    wait 10
    if
        00E1:   key_pressed 0 13  // camera key
    then
        0581: enable_radar 0  // hide radar
    else
        0581: enable_radar 1  // display radar
    end
end

Keywords

toggle, set, display, show, hide, radar, minimap