CLEO Help display txd

CLEO related
Status
Not open for further replies.

mehdi04

Active member
Joined
Jul 17, 2015
Messages
123
Reaction score
0
Location
Morocco
can someone give me an example of cleo wich display a txd from models/txd  :sadpepe:
 

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
0390: load_txd_dictionary "YOURTXDNAME"
038F: load_texture "TEXTURENAME" as 1 // Load dictionary with 0390 first

03F0: enable_text_draw 1 // ENABLE TEXTURE

038D: draw_texture 1 position -1 -1 size -1 -1 RGBA 225 225 225

 
 

mehdi04

Active member
Joined
Jul 17, 2015
Messages
123
Reaction score
0
Location
Morocco
is that right ? because its crashing me is the position is working the same as x and y ? because i want to display a logo at the bottom left
Code:
{$CLEO}

0000: NOP

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

03F0: enable_text_draw 1 // ENABLE TEXTURE

038D: draw_texture 1 position 70 430 size 50 50 RGBA 128 128 128 255
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
227
Location
( ͡° ͜ʖ ͡°)
Code:
{$CLEO .cs}
0000:
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
 
Status
Not open for further replies.
Top