CLEO Help help click textdraw

CLEO related
Status
Not open for further replies.

ItsRobinson

Active member
Joined
Nov 16, 2017
Messages
105
Reaction score
20
PHP:
{$CLEO}
0000: NOP
repeat
    wait 0
until 0AFA:

while true
    wait 0
    FOR 0@ = 0 TO 2050
        if
            0C5D: samp textdraw 0@ is_exists
        then
            0C59: samp textdraw 0@ get_model 1@ rot $NOT_USED $NOT_USED $NOT_USED zoom $NOT_USED veh_color $NOT_USED $NOT_USED
            if
                1@ == 1609 //if model of textdraw == 1609
            then
                0BCA: samp send_click_textdraw 0@
                BREAK   
            end
        end   
    END
end

Not tested, try this.
 

⪻Chucky⪼

Member
Joined
Jun 10, 2020
Messages
11
Reaction score
1
Location
argentina
PHP:
{$CLEO}
0000: NOP
repeat
    wait 0
until 0AFA:

while true
    wait 0
    FOR 0@ = 0 TO 2050
        if
            0C5D: samp textdraw 0@ is_exists
        then
            0C59: samp textdraw 0@ get_model 1@ rot $NOT_USED $NOT_USED $NOT_USED zoom $NOT_USED veh_color $NOT_USED $NOT_USED
            if
                1@ == 1609 //if model of textdraw == 1609
            then
                0BCA: samp send_click_textdraw 0@
                BREAK   
            end
        end   
    END
end

Not tested, try this.

It has not worked for me, any idea why?
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Code:
{$CLEO .cs} 
0000: NOP
REPEAT
Wait 0
Until 0AFA: is_samp_structures_available
 
While True
Wait 0 
for 0@ = 0 to 2304
If
0C5D: samp textdraw 0@ is_exists
Then
0C59: samp textdraw 0@ get_model 1@ rotation 2@ 3@ 4@ zoom 5@ veh_color 6@ 7@
If 
1@ == 1609
Then
0BCA: samp send_click_textdraw 0@
end
end
end
END
 

⪻Chucky⪼

Member
Joined
Jun 10, 2020
Messages
11
Reaction score
1
Location
argentina
Code:
{$CLEO .cs} 
0000: NOP
REPEAT
Wait 0
Until 0AFA: is_samp_structures_available
 
While True
Wait 0 
for 0@ = 0 to 2304
If
0C5D: samp textdraw 0@ is_exists
Then
0C59: samp textdraw 0@ get_model 1@ rotation 2@ 3@ 4@ zoom 5@ veh_color 6@ 7@
If 
1@ == 1609
Then
0BCA: samp send_click_textdraw 0@
end
end
end
END

It worked, thanks!
 
Status
Not open for further replies.
Top