CLEO Help TEWDRAW

CLEO related
Status
Not open for further replies.

curraco

Active member
Joined
Aug 3, 2020
Messages
39
Reaction score
3
Location
colombia
Hello, I am developing a bot for miners on a server, it is already complete, there is only one problem when selecting the tewdraw that the 4 are mapped with the same number, can someone help me in this step?
 

Attachments

  • sa-mp-005.png
    sa-mp-005.png
    1.1 MB · Views: 45

curraco

Active member
Joined
Aug 3, 2020
Messages
39
Reaction score
3
Location
colombia
Share code
Hello, I did not understand, I only told you that the cleo is called txd clicker. They gave me these lua codes but I don't know how to program lua, I only know how to program cleo.

function sampev.onShowTextDraw(txid, data)
if data.zoom == 1 and data.text == "sd" then
sampSendClickTextdraw(txid)
end
end



function sampev.onShowTextDraw(txid, data)
if txid == 21290 then
for key, val in pairs(data) do
tval = tostring(val)
tip = type(val)
sampAddChatMessage(key.." : "..tval.. " type - "..tip, - 1)
end
end
end



boxColor : -16777216 type - number
outline : 0 type - number
modelId : 0 type - number
color : -1 type - number
style : 1 type - number
backgroundColor : -16777216 type - number
lineWidth : 27 type - number
zoom : 1 type - number
position : table: 0x0017d610 type - table
selectable : 0 type - number
letterWidth : 0.31999999284744 type - number
text : Selecione a rocha type - string
lineHeight : 178 type - number
flags : 25 type - number
rotation : table: 0x0017d698 type - table
letterHeight : 1 type - number
letterColor : -1 type - number
shadow : 1 type - number
----------------------------
boxColor : -16777216 type - number
outline : 0 type - number
modelId : 0 type - number
color : -1 type - number
style : 1 type - number
backgroundColor : -16777216 type - number
lineWidth : 27 type - number
zoom : 1 type - number
position : table: 0x0017e128 type - table
selectable : 0 type - number
letterWidth : 0.31999999284744 type - number
text : _ type - string
lineHeight : 178 type - number
flags : 25 type - number
rotation : table: 0x0017e1b0 type - table
letterHeight : 21.10000038147 type - number
letterColor : -1 type - number
shadow : 1 type - number
----------------------------
boxColor : -16777216 type - number
outline : 0 type - number
modelId : 0 type - number
color : -1 type - number
style : 1 type - number
backgroundColor : -1727329525 type - number
lineWidth : 9 type - number
zoom : 1 type - number
position : table: 0x0017e9c0 type - table
selectable : 1 type - number
letterWidth : 0.28999999165535 type - number
text : X type - string
lineHeight : 9 type - number
flags : 9 type - number
rotation : table: 0x0017ea10 type - table
letterHeight : 1 type - number
letterColor : -16776961 type - number
shadow : 1 type - number
----------------------------
boxColor : -16777216 type - number
outline : 0 type - number
modelId : 896 type - number
color : -1 type - number
style : 5 type - number
backgroundColor : -1727329525 type - number
lineWidth : 87 type - number
zoom : 100 type - number
position : table: 0x0017f3b8 type - table
selectable : 1 type - number
letterWidth : 0.27000001072884 type - number
text : sd type - string
lineHeight : 93 type - number
flags : 9 type - number
rotation : table: 0x0017f440 type - table
letterHeight : 8.8000020980835 type - number
letterColor : -1 type - number
shadow : 0 type - number
----------------------------
boxColor : -16777216 type - number
outline : 0 type - number
modelId : 896 type - number
color : -1 type - number
style : 5 type - number
backgroundColor : -1727329525 type - number
lineWidth : 87 type - number
zoom : 100 type - number
position : table: 0x0017fe68 type - table
selectable : 1 type - number
letterWidth : 0.27000001072884 type - number
text : sd type - string
lineHeight : 93 type - number
flags : 9 type - number
rotation : table: 0x0017fef0 type - table
letterHeight : 8.8000020980835 type - number
letterColor : -1 type - number
shadow : 0 type - number
----------------------------
boxColor : -16777216 type - number
outline : 0 type - number
modelId : 896 type - number
color : -1 type - number
style : 5 type - number
backgroundColor : -1727329525 type - number
lineWidth : 87 type - number
zoom : 1 type - number
position : table: 0x0017d480 type - table
selectable : 1 type - number
letterWidth : 0.27000001072884 type - number
text : sd type - string
lineHeight : 93 type - number
flags : 9 type - number
rotation : table: 0x0017d4d0 type - table
letterHeight : 8.8000020980835 type - number
letterColor : -1 type - number
shadow : 0 type - number
----------------------------
boxColor : -16777216 type - number
outline : 0 type - number
modelId : 896 type - number
color : -1 type - number
style : 5 type - number
backgroundColor : -1727329525 type - number
lineWidth : 87 type - number
zoom : 100 type - number
position : table: 0x0ffb5eb0 type - table
selectable : 1 type - number
letterWidth : 0.27000001072884 type - number
text : sd type - string
lineHeight : 93 type - number
flags : 9 type - number
rotation : table: 0x0ffb5f00 type - table
letterHeight : 8.8000020980835 type - number
letterColor : -1 type - number
shadow : 0 type - number
----------------------------
 

davidel

Well-known member
Joined
Jan 17, 2020
Messages
207
Reaction score
7
Location
Germania
Try
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@ == 896
Then
0BCA: samp send_click_textdraw 0@
end
end
end
END
 

curraco

Active member
Joined
Aug 3, 2020
Messages
39
Reaction score
3
Location
colombia
Hello, it is random because the 4 is mapped with the id 896 and when another other than the rock is selected the rock goes to the ground, the solution is left in the link what happens is that lua is not programmed
 

Attachments

  • sa-mp-006.png
    sa-mp-006.png
    1.1 MB · Views: 19

davidel

Well-known member
Joined
Jan 17, 2020
Messages
207
Reaction score
7
Location
Germania
0C59: samp textdraw 0@ get_model 1@ rotation 2@ 3@ 4@ zoom 5@ veh_color 6@ 7@

you have 4 textdraws. 3 of them have the same zoom value and the 4th have different value
try to compare them and find the different one and that is the one u have to click
 

curraco

Active member
Joined
Aug 3, 2020
Messages
39
Reaction score
3
Location
colombia
0C59: samp textdraw 0@ get_model 1@ rotation 2@ 3@ 4@ zoom 5@ veh_color 6@ 7@

you have 4 textdraws. 3 of them have the same zoom value and the 4th have different value
try to compare them and find the different one and that is the one u have to click
ya entendi xd no habia entendido voy a ver.
 
Status
Not open for further replies.
Top