Difference between revisions of "0E0E"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{OpCode | games = {{Icon|SA}} | command = GET_CURRENT_RESOLUTION | description = Returns the current resolution. | syntax1 = 0E0E: get_current_resolution_to 0@...")
 
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
| command    = GET_CURRENT_RESOLUTION
 
| command    = GET_CURRENT_RESOLUTION
 
| description = Returns the current resolution.
 
| description = Returns the current resolution.
| syntax1    = 0E0E: get_current_resolution_to 0@ 1@
+
| syntax1    = 0E0E: get_current_resolution_to [''var1''] [''var2'']
| syntax2    = get_current_resolution 0@ 1@
+
| syntax2    = get_current_resolution [''var1''] [''var2'']
| p1t        = [''int'']
+
| p1t        = [''var1'']
| p1d        = Current X game resolution in integer.
+
| p1d        = Current X game resolution.
| p2t        = [''int'']
+
| p2t        = [''var2'']
| p2d        = Current Y game resolution in integer.
+
| p2d        = Current Y game resolution.
 
}}
 
}}
  
Line 16: Line 16:
 
== Keywords ==
 
== Keywords ==
 
resolution, cleo+, cleoplus
 
resolution, cleo+, cleoplus
 +
 +
[[Category:OpCodes]][[Category:CLEO+]]

Latest revision as of 13:19, 10 May 2021

San Andreas GET_CURRENT_RESOLUTION


Description
Returns the current resolution.
Syntax
0E0E: get_current_resolution_to [var1] [var2]
get_current_resolution [var1] [var2]
Parameter
[var1]
Current X game resolution.
[var2]
Current Y game resolution.

This opcode is used to get the current game resolution without reading game's memory. This is a part of CLEO+'s opcodes. This section is incomplete. You can help by fixing and expanding it.

Keywords

resolution, cleo+, cleoplus