Difference between revisions of "09BA"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
Line 1: Line 1:
<code>09BA=1,%1h%</code><br>
+
{{OpCode
'''Description''': Shows entered [[zone]] name<br>
+
| games      = {{Icon|SA}}
'''Parameter 1''': Flag<br>
+
| command    = DISPLAY_ZONE_NAMES
'''Supports''': San Andreas<br>
+
| description = Displays [[zone]] names
 +
| syntax1    = 09BA: show_entered_zone_name [''int'']
 +
| p1t        = [''int'']
 +
| p1d        = 0 = not display, 1 = display (default)
 +
}}
  
This opcode makes the game show or not show the name of the zones as you enter the zone.
+
This opcode sets the display of zone names when entering any zone.
  
==Flags==
+
== For GTA III and Vice City ==
'''Flag 0''': Disables entered zone name<br>
+
This opcode does not exist in GTA III and Vice City but it is possible to turn off zone names. The following example, using Sanny Builder with [[CLEO]] for GTA III and Vice City in an external script (not the main one) and tested on US v1.0, should work similarly to this opcode. Place this at the end of the file for Vice City:
'''Flag 1''': Enables entered zone name
+
<syntaxhighlight lang="scm">
 +
:opcode_09BA
 +
// 0@ - input param (set)
 +
if
 +
    0@ == 0
 +
then
 +
    05DF: write_memory 0x5594E8 size 4 value 0x0004F5E9 virtual_protect 1
 +
    05DF: write_memory 0x5594EC size 2 value 0x9000 virtual_protect 1
 +
else
 +
    05DF: write_memory 0x5594E8 size 4 value 0x04F4840F virtual_protect 1
 +
    05DF: write_memory 0x5594EC size 2 value 0x0000 virtual_protect 1
 +
end
 +
05F6: ret 0
 +
</syntaxhighlight>
  
==Keywords==
+
or for GTA III:
show, print, enter, zone, name
+
<syntaxhighlight lang="scm">
 +
:opcode_09BA
 +
// 0@ - input param (set)
 +
if
 +
    0@ == 0
 +
then
 +
    05DF: write_memory 0x5594E8 size 4 value 0x0004F5E9 virtual_protect 1
 +
    05DF: write_memory 0x5594EC size 2 value 0x9000 virtual_protect 1
 +
else
 +
    05DF: write_memory 0x5594E8 size 4 value 0x04F4840F virtual_protect 1
 +
    05DF: write_memory 0x5594EC size 2 value 0x0000 virtual_protect 1
 +
end
 +
05F6: ret 0
 +
</syntaxhighlight>
  
[[Category:OpCodes]]
+
Use this line as a substitute for opcode 09BA. This can be placed anywhere within the external script:
 +
<syntaxhighlight lang="scm">
 +
05F5: call_scm_func @opcode_09BA inputs 1 set 0
 +
</syntaxhighlight>
 +
 
 +
== Keywords ==
 +
display, zone, name
 +
 
 +
[[Category:Code Snippets]]

Latest revision as of 18:52, 9 June 2016

San Andreas DISPLAY_ZONE_NAMES


Description
Displays zone names
Syntax
09BA: show_entered_zone_name [int]
Parameter
[int]
0 = not display, 1 = display (default)

This opcode sets the display of zone names when entering any zone.

For GTA III and Vice City

This opcode does not exist in GTA III and Vice City but it is possible to turn off zone names. The following example, using Sanny Builder with CLEO for GTA III and Vice City in an external script (not the main one) and tested on US v1.0, should work similarly to this opcode. Place this at the end of the file for Vice City:

:opcode_09BA
// 0@ - input param (set) 
if
    0@ == 0
then
    05DF: write_memory 0x5594E8 size 4 value 0x0004F5E9 virtual_protect 1
    05DF: write_memory 0x5594EC size 2 value 0x9000 virtual_protect 1
else
    05DF: write_memory 0x5594E8 size 4 value 0x04F4840F virtual_protect 1
    05DF: write_memory 0x5594EC size 2 value 0x0000 virtual_protect 1
end
05F6: ret 0

or for GTA III:

:opcode_09BA
// 0@ - input param (set) 
if
    0@ == 0
then
    05DF: write_memory 0x5594E8 size 4 value 0x0004F5E9 virtual_protect 1
    05DF: write_memory 0x5594EC size 2 value 0x9000 virtual_protect 1
else
    05DF: write_memory 0x5594E8 size 4 value 0x04F4840F virtual_protect 1
    05DF: write_memory 0x5594EC size 2 value 0x0000 virtual_protect 1
end
05F6: ret 0

Use this line as a substitute for opcode 09BA. This can be placed anywhere within the external script:

05F5: call_scm_func @opcode_09BA inputs 1 set 0

Keywords

display, zone, name