Gta sa Memories...

JaggerJam

Well-Known Member
Joined
Sep 14, 2017
Messages
64
Likes
12
Points
58
#3
Here is a mini-HUD source, site link: https://libertycity.ru/files/gta-san-andreas/137571-simple-hud.html
P.S. But he creates new HUD.
Code:
/* Made by Vital */
//$PLAYER_ACTOR $PLAYER_GROUP $ONMISSION
//Byte, Char – 1; Short, Word – 2; Long, DWord, Float – 4
{$CLEO}
0000:

const
TEXT_FONT = 3 //0 (Gothic),1 (Standard),2 (Menu),3 (Pricedown)
LETTER_H = 1.8 //letter height
LETTER_W = 0.45 //letter width
OUTLINE_R = 0 //outline red colour (0–255)
OUTLINE_G = 0 //outline green colour (0–255)
OUTLINE_B = 0 //outline blue colour (0–255)
OUTLINE_A = 200 //outline alpha (0–255)
OUTLINE_W = 1 //outline width (1 & 2 are optimal values)
GXT_TIME = 'TIME'
GXT_TIME_0 = 'TIME_0'
GXT_VAR = 'BJ_0'
GXT_MONEY = 'DOLLAR'
end // const

while true
wait 0
0A8D: 0@ = read_memory 0xBA6769 size 1 virtual_protect 0 //Hud Mode (menu)
0A8D: 1@ = read_memory 0xB6F065 size 1 virtual_protect 0 //Widescreen (scripted)
    if and
    player.Defined(0) 
    09E7:   player 0 not_frozen
    not fading
    0@ == 1
    1@ == 0
    then
    0826: enable_hud 0     
  
    //drawing new HUD
    03F0: enable_text_draw 1
  
//armour
    04DD: 0@ = actor $PLAYER_ACTOR armour
    if
    0@ > 0
    then
    03E4: set_text_draw_align_right 1
    0340: set_text_draw_RGBA 150 150 150 255
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT
    033F: set_text_draw_letter_size LETTER_W LETTER_H
    0AB1: call_scm_func @Offset 2 633.0 7.0 1@ 2@ //max X 640.0 max Y 448.0
    045A: draw_text_1number 1@ 2@ GXT GXT_VAR number 0@  // ALL RACES WON!~n~~w~$~1~
    end
      
//health
    1@ = actor.Health($PLAYER_ACTOR) 
    if
    1@ > 0
    then
    03E4: set_text_draw_align_right 1 
    0340: set_text_draw_RGBA 255 0 0 255
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT
    033F: set_text_draw_letter_size LETTER_W LETTER_H
        if
        0@ > 0 //armour
        then
        0A08: get_gxt_string_1number GXT_VAR number 0@ width_to 2@  // ~1~
        0AB1: call_scm_func @Offset 2 2.0 7.0 3@ 4@     
        0093: 2@ = integer 2@ to_float           
        2@ -= 625.0
        0097: make 2@ absolute_float
        005B: 2@ += 3@  // (float)
        045A: draw_text_1number 2@ 4@ GXT GXT_VAR number 1@  // ALL RACES WON!~n~~w~$~1~
        else
        0AB1: call_scm_func @Offset 2 633.0 7.0 2@ 3@
        045A: draw_text_1number 2@ 3@ GXT GXT_VAR number 1@  // ALL RACES WON!~n~~w~$~1~
        end
    end   
  
//ammo
    0AB1: call_scm_func @GetAmmo_2 0 0@ 1@ //in clip; remaining
    if
    0@ > 0 //ammo in clip 
    then
    03E4: set_text_draw_align_right 1
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT
    0093: 5@ = integer 0@ to_float
    5@ /= 0.5
    0092: 5@ = float 5@ to_integer
        if
        5@ > 200
        then
        5@ = 200     
        end 
    0340: set_text_draw_RGBA 50 200 5@ 255
    033F: set_text_draw_letter_size LETTER_W LETTER_H
        if and
        1@ > 0 //remaining ammo
        not 1@ > 9999 //max displated ammo
        then
        0A08: get_gxt_string_1number GXT_VAR number 1@ width_to 2@  // ~1~
        0AB1: call_scm_func @Offset 2 2.0 25.0 3@ 4@ 
        0093: 2@ = integer 2@ to_float     
        2@ -= 625.0
        0097: make 2@ absolute_float
        005B: 2@ += 3@  // (float)
        045A: draw_text_1number 2@ 4@ GXT GXT_VAR number 0@  // ALL RACES WON!~n~~w~$~1~
        else
        0AB1: call_scm_func @Offset 2 633.0 25.0 1@ 2@
        045A: draw_text_1number 1@ 2@ GXT GXT_VAR number 0@  // ALL RACES WON!~n~~w~$~1~
        end
    end
  
    if and
    1@ > 0 //remaining ammo
    not 1@ > 9999 //max displated ammo
    then
    03E4: set_text_draw_align_right 1
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT 
    033F: set_text_draw_letter_size LETTER_W LETTER_H
    0340: set_text_draw_RGBA 255 180 180 255
    0AB1: call_scm_func @Offset 2 633.0 25.0 2@ 3@         
    045A: draw_text_1number 2@ 3@ GXT GXT_VAR number 1@  // ALL RACES WON!~n~~w~$~1~
    end
            
//time
    00BF: 0@ = current_time_hours, 1@ = current_time_minutes
    0342: set_text_draw_centered 1
    0093: 2@ = integer 0@ to_float
    0093: 3@ = integer 1@ to_float
    3@ /= 60.0 //convert minutes: 60 min is 1
    005B: 2@ += 3@  // (float) add converted minutes to hours
    2@ *= 7.5 //convert to angle: 12:00 is 90°, whose sine is 1
    02F6: 2@ = sine 2@ // (float) get sine
    2@ *= 170.0 //max is 1, multiply by 170, which is max added colour value 
    0092: 2@ = float 2@ to_integer
    2@ += 70 //70 is min colour value in order not to make the text too dark
    0340: set_text_draw_RGBA 2@ 2@ 255 255 
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT
    033F: set_text_draw_letter_size LETTER_W LETTER_H
    0AB1: call_scm_func @Offset 2 320.0 7.0 3@ 4@
    if
    1@ > 9
    then 
    045B: draw_text_2numbers 3@ 4@ GXT GXT_TIME numbers 0@ 1@  // ~1~:~1~
    else 
    045B: draw_text_2numbers 3@ 4@ GXT GXT_TIME_0 numbers 0@ 1@  // ~1~:0~1~
    end
  
//oxygen
    if
    0965:   actor $PLAYER_ACTOR swimming
    then
    0AB1: call_scm_func @GetOxygen_1 0 0@ //2652.0 max
    0087: 1@ = 0@ // (float)
    1@ /= 25.0
        if
        1@ > 100.0
        then
        1@ = 100.0
        end 
    0092: 1@ = float 1@ to_integer
    0085: 0@ = 1@ // (int)
    0@ += 125
    0AB1: call_scm_func @Offset 2 320.0 25.0 2@ 3@
    0342: set_text_draw_centered 1 
    0340: set_text_draw_RGBA 0 255 255 0@ 
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B 0@
    0349: set_text_draw_font TEXT_FONT
    033F: set_text_draw_letter_size LETTER_W LETTER_H
    045A: draw_text_1number 2@ 3@ GXT GXT_VAR number 1@  // ALL RACES WON!~n~~w~$~1~
    end
      
//money
    0@ = player.Money(0) 
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT
    033F: set_text_draw_letter_size LETTER_W LETTER_H 
    if
    0@ > 0
    then
    0340: set_text_draw_RGBA 72 140 62 255
    else
        if
        0@ == 0
        then
        0340: set_text_draw_RGBA 200 200 200 255
        else
        0340: set_text_draw_RGBA 255 0 0 255
        end
    end
    0AB1: call_scm_func @Offset 2 7.0 7.0 1@ 2@
    045A: draw_text_1number 1@ 2@ GXT GXT_MONEY number 0@  // ALL RACES WON!~n~~w~$~1~
  
//wanted level
    0@ = player.WantedLevel(0) 
    0A8D: 1@ = read_memory 0xB7CD9C size 4 virtual_protect 0 //CWanted
    0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0 //cop rage: 6900 max
    if
    0@ > 0 
    then   
    0093: 1@ = integer 1@ to_float
    1@ /= 44.5 //convert: 6900 — 155
    0092: 1@ = float 1@ to_integer
    1@ += 100     
    0340: set_text_draw_RGBA 1@ 215 100 255
    081C: draw_text_outline OUTLINE_W RGBA OUTLINE_R OUTLINE_G OUTLINE_B OUTLINE_A
    0349: set_text_draw_font TEXT_FONT
    033F: set_text_draw_letter_size LETTER_W LETTER_H
    0AB1: call_scm_func @Offset 2 7.0 25.0 2@ 3@
    045A: draw_text_1number 2@ 3@ GXT GXT_VAR number 0@  // ALL RACES WON!~n~~w~$~1~
    end     
  
    //turn drawing mode off
    03F0: enable_text_draw 0
    end
end

:GetAmmo_2
0A96: 0@ = actor $PLAYER_ACTOR struct 
0@ += 0x718
0A8D: 1@ = read_memory 0@ size 1 virtual_protect 0 //weapon slot
    if and
    1@ > 1 //not melee
    1@ <> 10 //not gifts
    1@ <> 11 //not goggles or parachute
    1@ <> 12 //not detonator
    then
    1@ *= 28 //each slot has 28 bytes of info
    0A96: 0@ = actor $PLAYER_ACTOR struct
    0@ += 0x5A0 //CWeaponSlot
    005A: 0@ += 1@  // (int)
    0@ += 8 //get ammo in clip
    0A8D: 1@ = read_memory 0@ size 4 virtual_protect 0
    0@ += 4 //get all ammo
    0A8D: 2@ = read_memory 0@ size 4 virtual_protect 0
    0062: 2@ -= 1@  // (int) get remaining ammo
    else
    1@ = -1
    2@ = -1
    end
0AB2: ret 2 1@ 2@

:GetOxygen_1 //0xB7CDB4 - sprinting time left, just in case
0A8D: 0@ = read_memory 0xB7CDE0 size 4 virtual_protect 0
0AB2: ret 1 0@

:Offset //0@ - X, 1@ - Y
0A4A: store_joystick_X_offset_to 2@ Y_offset_to 3@
2@ *= 0.05
3@ *= -0.05
0079: 2@ += frame_delta_time * 0.02 // (float)
0079: 3@ += frame_delta_time * 0.02 // (float)
    if
    2@ > 5.0
    then
    2@ = 5.0
    else
        if
        2@ < -5.0
        then
        2@ = -5.0
        end
    end
  
    if
    3@ > 5.0
    then
    3@ = 5.0
    else
        if
        3@ < -5.0
        then
        3@ = -5.0
        end
    end
005B: 0@ += 2@  // (float)
005B: 1@ += 3@  // (float)
0AB2: ret 2 0@ 1@
 

Attachments

couldnot

Active Member
Joined
Dec 24, 2018
Messages
25
Likes
1
Points
18
#5
Maybe use Interface Editor Visual.

Money.X=32
Money.Y=89
Money.Format.Positive=$%08d
Money.Format.Negative=-$%07d
Money.Color=$RRGGBBFF
 
OP
OP
Parazitas

Parazitas

Well-Known Member
Section Moderator
Joined
Jan 2, 2017
Messages
2,556
Likes
617
Points
163
Location
Lithuania
Website
discord.gg
30
#8
Memories from Gta Sa
Some other stuff i keep for myself xD

PHP:
{$CLEO .cs}

0000: NOP

wait 8500

{
    // Default Coords
    0AB1: @Health 3 X 141.0 Y 77.0 SizeX 569.0
    0AB1: @Armour 3 X 94.0 Y 48.0
    0AB1: @WeaponIcon 3 X 0.1734304577 Y 20.0 SizeY 58.0
    0AB1: @Money 2 Y 89.0 SizeX 0.5500000119
    0AB1: @HudRadarAndComponentsCoords 16 fRadarLeft 40.0 fRadarTop 104.0 fRadarWidth 94.0 fRadarHeight 76.0 fRadarRingPlaneHorzPad 18.0 fRadarRingPlaneVertPad 18.0 fAltimeterRadarLeft 40.0 fAltimeterRadarTop 104.0 fAltimeterRadarHeight 76.0 fAltimeterVertBarLeftMostRadarPos 20.0 fAltimeterVertBarLeftRadarPos 10.0 fAltimeterHorzBarLeftMostRadarPos 25.0 fAltimeterHorzBarLeftRadarPos 5.0 fAltimeterHorzBarHeight 2.0 fRadarDiscHorzMargin 4.0 fRadarDiscVertMargin 4.0
}

0AB1: @Health 3 X 497.5 Y 370.0 SizeX 569.0
0AB1: @Armour 3 X 450.0 Y 383.0
0AB1: @WeaponIcon 3 X 0.7334304142 Y 315.0 SizeY 80.0
0AB1: @Money 2 Y 400.0 SizeX 0.5500000119
0AB1: @RadarAndComponentsCoords 16 fRadarLeft 40.0 fRadarTop 104.0 fRadarWidth 94.0 fRadarHeight 76.0 fRadarRingPlaneHorzPad 18.0 fRadarRingPlaneVertPad 18.0 fAltimeterRadarLeft 40.0 fAltimeterRadarTop 104.0 fAltimeterRadarHeight 76.0 fAltimeterVertBarLeftMostRadarPos 20.0 fAltimeterVertBarLeftRadarPos 10.0 fAltimeterHorzBarLeftMostRadarPos 25.0 fAltimeterHorzBarLeftRadarPos 5.0 fAltimeterHorzBarHeight 2.0 fRadarDiscHorzMargin 4.0 fRadarDiscVertMargin 4.0
0AB1: @HudCloring 15 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00 ARGB 0xFF00FF00
0AB1: @RadarCloring 21 RGB 0 255 0 RGB 0 255 0 RGB 0 255 0 RGB 0 255 0 RGB 0 255 0 RGB 0 255 0 RGB 0 255 0 

while true
wait 0

end

:RadarCloring
0A8C: write_memory 0x58A9A2 size 1 value 0@ virtual_protect 0
0A8C: write_memory 0x58A99A size 1 value 1@ virtual_protect 0
0A8C: write_memory 0x58A996 size 1 value 2@ virtual_protect 0

0A8C: write_memory 0x58A8EE size 1 value 3@ virtual_protect 0
0A8C: write_memory 0x58A8E6 size 1 value 4@ virtual_protect 0
0A8C: write_memory 0x58A8DE size 1 value 5@ virtual_protect 0

0A8C: write_memory 0x58A89A size 1 value 6@ virtual_protect 0
0A8C: write_memory 0x58A896 size 1 value 7@ virtual_protect 0
0A8C: write_memory 0x58A894 size 1 value 8@ virtual_protect 0

0A8C: write_memory 0x58A798 size 1 value 9@ virtual_protect 0
0A8C: write_memory 0x58A790 size 1 value 10@ virtual_protect 0
0A8C: write_memory 0x58A78E size 1 value 11@ virtual_protect 0

0A8C: write_memory 0x582F20 size 1 value 12@ virtual_protect 0
0A8C: write_memory 0x582F1A size 1 value 13@ virtual_protect 0
0A8C: write_memory 0x582F18 size 1 value 14@ virtual_protect 0
// My pos icon
0A8C: write_memory 0x588691 size 1 value 15@ virtual_protect 0
0A8C: write_memory 0x58868C size 1 value 16@ virtual_protect 0
0A8C: write_memory 0x588687 size 1 value 17@ virtual_protect 0
// " N " circle icon
0A8C: write_memory 0x5860CD size 1 value 18@ virtual_protect 0
0A8C: write_memory 0x5860C2 size 1 value 19@ virtual_protect 0
0A8C: write_memory 0x5860BD size 1 value 20@ virtual_protect 0
0AB2: ret 0


:HudCloring
0A8C: write_memory 0xBAB22C size 4 value 0@ virtual_protect 0
0A8C: write_memory 0xBAB230 size 4 value 1@ virtual_protect 0
0A8C: write_memory 0xBAB234 size 4 value 2@ virtual_protect 0

0A8C: write_memory 0xBAB238 size 4 value 3@ virtual_protect 0
0A8C: write_memory 0xBAB23C size 4 value 4@ virtual_protect 0
0A8C: write_memory 0xBAB260 size 4 value 5@ virtual_protect 0

0A8C: write_memory 0xBAB240 size 4 value 6@ virtual_protect 0
0A8C: write_memory 0xBAB244 size 4 value 7@ virtual_protect 0
0A8C: write_memory 0xBAB248 size 4 value 8@ virtual_protect 0

0A8C: write_memory 0xBAB24C size 4 value 9@ virtual_protect 0
0A8C: write_memory 0xBAB250 size 4 value 10@ virtual_protect 0
0A8C: write_memory 0xBAB254 size 4 value 11@ virtual_protect 0

0A8C: write_memory 0xBAB258 size 4 value 12@ virtual_protect 0
0A8C: write_memory 0xBAB25C size 4 value 13@ virtual_protect 0
0A8C: write_memory 0xBAB260 size 4 value 14@ virtual_protect 0
0AB2: ret 0

:Money
0A8C: write_memory 0x866C88 size 4 value 0@ virtual_protect 0 // Y
0A8C: write_memory 0x866CAC size 4 value 1@ virtual_protect 0 // Size X
0AB2: ret 0

:Health
0A8C: write_memory 0x86535C size 4 value 0@ virtual_protect 0 // X
0A8C: write_memory 0x866CA8 size 4 value 1@ virtual_protect 0 // Y
0A8C: write_memory 0xB793E0 size 4 value 2@ virtual_protect 0 // Size X
0AB2: ret 0

:Armour
0A8C: write_memory 0x866B78 size 4 value 0@ virtual_protect 0 // X
0A8C: write_memory 0x862D38 size 4 value 1@ virtual_protect 0 // Y
0AB2: ret 0

:WeaponIcon
0A8C: write_memory 0x866C84 size 4 value 0@ virtual_protect 0 // X
0A8C: write_memory 0x858BA4 size 4 value 1@ virtual_protect 0 // Y
0A8C: write_memory 0x866C50 size 4 value 2@ virtual_protect 0 // Size Y
0AB2: ret 0

:RadarAndComponentsCoords
const 
    fRadarLeft = 31@ 
    fRadarTop = 30@ 
    fRadarWidth = 29@ 
    fRadarHeight = 28@ 
    fRadarRingPlaneHorzPad = 27@ 
    fRadarRingPlaneVertPad = 26@ 
    fAltimeterRadarLeft               = 25@ 
    fAltimeterRadarTop                = 24@ 
    fAltimeterRadarHeight             = 23@ 
    fAltimeterVertBarLeftMostRadarPos = 22@ 
    fAltimeterVertBarLeftRadarPos     = 21@ 
    fAltimeterHorzBarLeftMostRadarPos = 22@ 
    fAltimeterHorzBarLeftRadarPos     = 21@ 
    fAltimeterHorzBarHeight           = 20@ 
    fRadarDiscHorzMargin              = 19@ 
    fRadarDiscVertMargin              = 18@
end  

0AC6: 17@ = label @DefaultRadarAndComponentsCoords offset
0085: fRadarLeft = 17@
0A8C: write_memory fRadarLeft size 4 value 0@ virtual_protect 0
0A8E: fRadarTop = 17@ + 0x04
0A8C: write_memory fRadarTop size 4 value 1@ virtual_protect 0
0A8E: fRadarWidth = 17@ + 0x08
0A8C: write_memory fRadarWidth size 4 value 2@ virtual_protect 0
0A8E: fRadarHeight = 17@ + 0x0C
0A8C: write_memory fRadarHeight size 4 value 3@ virtual_protect 0
0A8E: fRadarRingPlaneHorzPad = 17@ + 0x10
0A8C: write_memory fRadarRingPlaneHorzPad size 4 value 4@ virtual_protect 0
0A8E: fRadarRingPlaneVertPad = 17@ + 0x14
0A8C: write_memory fRadarRingPlaneVertPad size 4 value 5@ virtual_protect 0
0A8E: fAltimeterRadarLeft = 17@ + 0x18
0A8C: write_memory fAltimeterRadarLeft size 4 value 6@ virtual_protect 0
0A8E: fAltimeterRadarTop = 17@ + 0x1C
0A8C: write_memory fAltimeterRadarTop size 4 value 7@ virtual_protect 0
0A8E: fAltimeterRadarHeight = 17@ + 0x20
0A8C: write_memory fAltimeterRadarHeight size 4 value 8@ virtual_protect 0
0A8E: fAltimeterVertBarLeftMostRadarPos = 17@ + 0x24
0A8C: write_memory fAltimeterVertBarLeftMostRadarPos size 4 value 9@ virtual_protect 0
0A8E: fAltimeterVertBarLeftRadarPos = 17@ + 0x28
0A8C: write_memory fAltimeterVertBarLeftRadarPos size 4 value 10@ virtual_protect 0
0A8E: fAltimeterHorzBarLeftMostRadarPos = 17@ + 0x2C
0A8C: write_memory fAltimeterHorzBarLeftMostRadarPos size 4 value 11@ virtual_protect 0
0A8E: fAltimeterHorzBarLeftRadarPos = 17@ + 0x30
0A8C: write_memory fAltimeterHorzBarLeftRadarPos size 4 value 12@ virtual_protect 0
0A8E: fAltimeterHorzBarHeight = 17@ + 0x34
0A8C: write_memory fAltimeterHorzBarHeight size 4 value 13@ virtual_protect 0
0A8E: fRadarDiscHorzMargin = 17@ + 0x38
0A8C: write_memory fRadarDiscHorzMargin size 4 value 14@ virtual_protect 0
0A8E: fRadarDiscVertMargin = 17@ + 0x3C// Map and sprites position relative to the radar rectangle.
0A8C: write_memory fRadarDiscVertMargin size 4 value 15@ virtual_protect 0
0A8C: write_memory 0x005834C2 size 4 value fRadarWidth virtual_protect 1
0A8C: write_memory 0x005834D4 size 4 value fRadarLeft virtual_protect 1
0A8C: write_memory 0x005834F6 size 4 value fRadarHeight virtual_protect 1
0A8C: write_memory 0x00583500 size 4 value fRadarTop virtual_protect 1// Radar ring plane rectangle.
0A8C: write_memory 0x0058A449 size 4 value fRadarWidth virtual_protect 1
0A8C: write_memory 0x0058A453 size 4 value fRadarRingPlaneHorzPad virtual_protect 1
0A8C: write_memory 0x0058A469 size 4 value fRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A47D size 4 value fRadarHeight virtual_protect 1
0A8C: write_memory 0x0058A489 size 4 value fRadarRingPlaneVertPad virtual_protect 1
0A8C: write_memory 0x0058A499 size 4 value fRadarTop virtual_protect 1// Altimeter rectangle.
0A8C: write_memory 0x0058A5E2 size 4 value fAltimeterRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A5F0 size 4 value fAltimeterVertBarLeftMostRadarPos virtual_protect 1
0A8C: write_memory 0x0058A60E size 4 value fAltimeterRadarTop virtual_protect 1
0A8C: write_memory 0x0058A620 size 4 value fAltimeterVertBarLeftRadarPos virtual_protect 1
0A8C: write_memory 0x0058A632 size 4 value fAltimeterRadarHeight virtual_protect 1
0A8C: write_memory 0x0058A6E6 size 4 value fAltimeterRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A6F2 size 4 value fAltimeterHorzBarLeftMostRadarPos virtual_protect 1
0A8C: write_memory 0x0058A70E size 4 value fAltimeterRadarHeight virtual_protect 1
0A8C: write_memory 0x0058A71E size 4 value fAltimeterRadarTop virtual_protect 1
0A8C: write_memory 0x0058A759 size 4 value fAltimeterHorzBarLeftRadarPos virtual_protect 1
0A8C: write_memory 0x0058A767 size 4 value fAltimeterHorzBarHeight virtual_protect 1// Upper-left radar disc rectangle.
0A8C: write_memory 0x0058A79B size 4 value fRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A7A9 size 4 value fRadarDiscHorzMargin virtual_protect 1
0A8C: write_memory 0x0058A7C7 size 4 value fRadarTop virtual_protect 1
0A8C: write_memory 0x0058A7D9 size 4 value fRadarDiscVertMargin virtual_protect 1
0A8C: write_memory 0x0058A7E9 size 4 value fRadarWidth virtual_protect 1
0A8C: write_memory 0x0058A801 size 4 value fRadarHeight virtual_protect 1// Upper-right radar disc rectangle.
0A8C: write_memory 0x0058A836 size 4 value fRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A840 size 4 value fRadarWidth virtual_protect 1
0A8C: write_memory 0x0058A848 size 4 value fRadarDiscHorzMargin virtual_protect 1
0A8C: write_memory 0x0058A868 size 4 value fRadarTop virtual_protect 1
0A8C: write_memory 0x0058A87A size 4 value fRadarDiscVertMargin virtual_protect 1
0A8C: write_memory 0x0058A8AB size 4 value fRadarHeight virtual_protect 1// Lower-left radar disc rectangle.
0A8C: write_memory 0x0058A8E9 size 4 value fRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A8F9 size 4 value fRadarDiscHorzMargin virtual_protect 1
0A8C: write_memory 0x0058A913 size 4 value fRadarTop virtual_protect 1
0A8C: write_memory 0x0058A921 size 4 value fRadarHeight virtual_protect 1
0A8C: write_memory 0x0058A92D size 4 value fRadarDiscVertMargin virtual_protect 1
0A8C: write_memory 0x0058A943 size 4 value fRadarWidth virtual_protect 1// Lower-right radar disc rectangle.
0A8C: write_memory 0x0058A98A size 4 value fRadarLeft virtual_protect 1
0A8C: write_memory 0x0058A99D size 4 value fRadarWidth virtual_protect 1
0A8C: write_memory 0x0058A9AB size 4 value fRadarDiscHorzMargin virtual_protect 1
0A8C: write_memory 0x0058A9C7 size 4 value fRadarTop virtual_protect 1
0A8C: write_memory 0x0058A9D5 size 4 value fRadarHeight virtual_protect 1
0A8C: write_memory 0x0058A9E1 size 4 value fRadarDiscVertMargin virtual_protect 1// Radar searchlight maximum width?
0A8C: write_memory 0x0058781B size 4 value fRadarWidth virtual_protect 1
0AB2: ret 0

:HudRadarAndComponentsCoords
hex 
00002042 // ( 40.0f) fRadarLeft 
0000D042 // (104.0f) fRadarTop 
0000BC42 // ( 94.0f) fRadarWidth 
00009842 // ( 76.0f) fRadarHeight 
00009041 // ( 18.0f) fRadarRingPlaneHorzPad 
00009041 // ( 18.0f) fRadarRingPlaneVertPad 
00002042 // ( 40.0f) fAltimeterRadarLeft 
0000D042 // (104.0f) fAltimeterRadarTop 
00009842 // ( 76.0f) fAltimeterRadarHeight 
0000A041 // ( 20.0f) fAltimeterVertBarLeftMostRadarPos 
00002041 // ( 10.0f) fAltimeterVertBarLeftRadarPos 
0000C841 // ( 25.0f) fAltimeterHorzBarLeftMostRadarPos 
0000A040 // (  5.0f) fAltimeterHorzBarLeftRadarPos     // Unscaled, R* bug. 
00000040 // (  2.0f) fAltimeterHorzBarHeight           // Unscaled, R* bug. 
00008040 // (  4.0f) fRadarDiscHorzMargin 
00008040 // (  4.0f) fRadarDiscVertMargin
end
PHP:
:BrightSkin
// 0AB1: @BrightSkin 1 ActorHandle 30@
0A96: 2@ = actor 0@ struct // 0@ = Actor handle
2@ += 300
0A8C: write_memory 2@ size 4 value 12.5 virtual_protect 0
0AB2: ret 0

:DarkSkin
// 0AB1: @DarkSkin 1 ActorHandle 30@
0A96: 2@ = actor 0@ struct // 0@ = Actor handle
2@ += 300
0A8C: write_memory 2@ size 4 value -12.5 virtual_protect 0
0AB2: ret 0
 
Last edited:

ItsRobinson

Well-Known Member
Joined
Nov 16, 2017
Messages
105
Likes
19
Points
48
#11
@Parazitas I did not share with you so that you would not share with others.

PHP:
Health PosX - 0x58EE87
Health PosY - 0x58EE68
Health Width - 0x5892D8
Health Height - 0x589358
Health Color - 0x58932A
Health Border - 0x589353
Health Percentage - 0x589355
Armor PosX - 0x58EF59
Armor PosY - 0x58EF3A
ArmorWidth - 0x58915D
ArmorHeight - 0x589146
ArmorColor - 0x5890F5
ArmorBorder - 0x589123
ArmorPercentage - 0x589125
BreathX - 0x58F11F
BreathY - 0x58F100
BreathWidth - 0x589235
BreathHeight - 0x58921E
BreathColor - 0x5891E4
BreathBorder - 0x589207
BreathPercentage - 0x589209
MoneyX - 0x58F5FC
MoneyY - 0x58F5DC
MoneyXScale - 0x58F564
MoneyYScale - 0x58F54E
MoneyColor - 0x58F492
MoneyColorDebt - 0x58F4D4
WeaponX - 0x58F92F
WeaponIconX - 0x58F927
WeaponIconY - 0x58F913
WeaponAmmoY - 0x58F9DC
WeaponAmmoX - 0x58F9F7
WeaponIconWidth - 0x58FAAB
WeaponAmmoHeight - 0x5894B7
WeaponAmmoWidth - 0x5894CD
WantedX - 0x58DD0F
WantedY - 0x58DDFC
WantedEmptyY - 0x58DE27
WantedXScale - 0x58DCC0
WantedYScale - 0x58DCAA
WantedColor - 0x58DDC9
RadioY - 0x4E9FD8
RadioXScale - 0x4E9F38
RadioYScale - 0x4E9F22
RadioColor - 0x4E9F91
RadarX - 0x58A79B, 0x5834D4, 0x58A836, 0x58A8E9, 0x58A98A, 0x58A469, 0x58A5E2, 0x58A6E6
RadarY - 0x58A7C7, 0x58A868, 0x58A913, 0x58A9C7, 0x583500, 0x58A499, 0x58A60E, 0x58A71E
RadarHeight - 0x58A47D, 0x58A632, 0x58A6AB, 0x58A70E, 0x58A801, 0x58A8AB, 0x58A921, 0x58A9D5, 0x5834F6
RadarWidth - 0x5834C2, 0x58A449, 0x58A7E9, 0x58A840, 0x58A943, 0x58A99D
RadarScaleWidth - 0x5834EE, 0x58A475, 0x58A602, 0x58A706, 0x58A7BB, 0x58A85C, 0x58A90B, 0x58A9BF
RadarScaleHeight - 0x5834BC, 0x58A443, 0x58A5DA, 0x58A6E0, 0x58A793, 0x58A830, 0x58A8E1, 0x58A984
Radar-Tilt-XPos - 0x58A469
Radar-Tilt-YPos - 0x58A499
Radar-Height-XPos - 0x58A5E2, 0x58A6E6
Radar-Height-YPos - 0x58A60E, 0x58A71E
 
Top