CLEO Help interface

CLEO related
Status
Not open for further replies.

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
@springfield,

the interface has different color compared to textdraws, any idea how to fix it?

https://i.imgur.com/miecPuT.jpg

[shcode=cpp]
            0B67: render a 0xFF r 1@ g 2@ b 3@ to_argb 17@ {actualy there is a loop to make a rainbow}

            0A8C: write_memory 0xBAB22C size 4 value 17@ virtual_protect 0
            0A8C: write_memory 0xBAB230 size 4 value 17@ virtual_protect 0
            0A8C: write_memory 0xBAB238 size 4 value 17@ virtual_protect 0
            0A8C: write_memory 0xBAB240 size 4 value 17@ virtual_protect 0
            0A8C: write_memory 0xBAB244 size 4 value 17@ virtual_protect 0
            0A8C: write_memory 0xBAB24C size 4 value 17@ virtual_protect 0
            0A8C: write_memory 0xBAB258 size 4 value 17@ virtual_protect 0 

            for 6@ = 0 to 2400
                if 0C5D: samp textdraw 6@ is_exists
                then
                    0C5C: samp textdraw 6@ get_letter_size 7@ 8@ color -1
                    0C52: samp textdraw 6@ set_letter_size 7@ 8@ color 17@
                end
            end
[/shcode]

[shcode=cpp]
        0xBAB22C - [byte] Health bar/red text/enemy marker/anything red color (RGBA, 4 bytes)
        0xBAB230 - [byte] Money font color/vehicle entry name/green text/anything green color (RGBA, 4 bytes)
        0xBAB238 - [byte] White text color (RGBA, 4 bytes)
        0xBAB240 - [byte] Main menu title border (RGBA, 4 bytes)
        0xBAB244 - [byte] Wanted level color (RGBA, 4 bytes)
        0xBAB24C - [byte] Radio station text color (RGBA, 4 bytes)
        0xBAB258 - [byte] Yellow blip/text color (RGBA, 4 bytes)
[/shcode]
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Write them in reverse , if you want to write to a memory RGBA color, you need to write the value as reversed, ABGR.

ex;
[shcode=cpp]
0A8C: write_memory 0xBAB22C size 4 value 0xAABBGGRR virtual_protect 0
[/shcode]
 
Status
Not open for further replies.
Top