CLEO Help Help with textured screen

CLEO related
Status
Not open for further replies.

habinabi

Active member
Joined
Nov 10, 2019
Messages
51
Reaction score
2
Location
Czech Republic
Hi, I need to write this script to have this image on the minimap at the bottom left - Under the code HAIN.png
I have code that I think should work but doesn't work, please help me.

Rich (BB code):
{$CLEO .cs}

thread "TXD"

:TXD_7
wait 0
if
   Player.Defined($PLAYER_CHAR)
else_jump @TXD_7
0390: load_txd_dictionary "HAIN"
038F: load_texture "PNG" as 32000

:TXD_3C
wait 0
if
   Player.Defined($PLAYER_CHAR)
else_jump @TXD_3C
03F0: enable_text_draw 1
038D: draw_texture 32000 position 80.0 290.0 size 131.0 62.0 RGBA 255 255 255 255
jump @TXD_3C
03F0: enable_text_draw 0
0391: release_textures
 

Attachments

  • HAIN.png
    HAIN.png
    854 bytes · Views: 9
  • hain-txd.png
    hain-txd.png
    22.8 KB · Views: 9

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Example:
PHP:
{$CLEO .cs}
0000:

wait 8500

0390: load_txd_dictionary "logo"
038F: load_texture "a1" as 1 // Load dictionary with 0390 first

WHILE TRUE
    WAIT 0
    03F0: enable_text_draw 1 // ENABLE TEXTURE
    038D: draw_texture 1 position 0.0 448.0 size 50.0 50.0 RGBA 128 128 128 255
  
    {
     GTA_SA SCREEN POSITIONS: X: 0.0 - 640.0
                                                   Y: 0.0 - 448.0
     Exact Bottom left cordinates would be: 0.0 448.0
    }
END
 

habinabi

Active member
Joined
Nov 10, 2019
Messages
51
Reaction score
2
Location
Czech Republic
Example:
PHP:
{$CLEO .cs}
0000:

wait 8500

0390: load_txd_dictionary "logo"
038F: load_texture "a1" as 1 // Load dictionary with 0390 first

WHILE TRUE
    WAIT 0
    03F0: enable_text_draw 1 // ENABLE TEXTURE
    038D: draw_texture 1 position 0.0 448.0 size 50.0 50.0 RGBA 128 128 128 255
 
    {
     GTA_SA SCREEN POSITIONS: X: 0.0 - 640.0
                                                   Y: 0.0 - 448.0
     Exact Bottom left cordinates would be: 0.0 448.0
    }
END

I wrote it like this and I still can't do it, don't you know why? if so could you please edit the code and write it to me here?

Code:
{$CLEO .cs}
0000:
0390: load_txd_dictionary "HAIN"
038F: load_texture "PNG" as 32000 // Load dictionary with 0390 first




WHILE TRUE
    WAIT 0
    03F0: enable_text_draw 1 // ENABLE TEXTURE
    038D: draw_texture 32000 position 80.0 290.0 size 131.0 62.0 RGBA 255 255 255 255
   
    {
     GTA_SA SCREEN POSITIONS: X: 0.0 - 640.0
                                                   Y: 131.0 - 62.0
     Exact Bottom left cordinates would be: 131.0 62.0
    }
END
 
Last edited:
Status
Not open for further replies.
Top