Hello,
Is it possible to search for a textdraw if we know what it's contains? Like for example I wanna find all doors, and it says "Door - Hospital - Enter" with yellow.
Can somebody give me a few starting points if this is manageable, how to do it?
I found this:
But how can I edit this to search for a specific textdraw, what contains for example: "Door"..? I would need something that gives me the position of these textdraws, when it is within the streamed zone. So it would be like an object finder, but only for textdraw /3d text label etc.
Thanks!
Is it possible to search for a textdraw if we know what it's contains? Like for example I wanna find all doors, and it says "Door - Hospital - Enter" with yellow.
Can somebody give me a few starting points if this is manageable, how to do it?
I found this:
Code:
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
0B34: "txd" @textdraw
WHILE TRUE
WAIT 0
END
:textdraw
0B35: 0@
for 1@ = 0 to 2304
if 0C5D: samp textdraw 1@ is_exists
then
alloc 2@ = 1024
0C5A: samp textdraw 1@ get_string_to 2@
if 0C29: 3@ = stristr string1 2@ string2 0@
then 0AF8: "textdraw with id %d contains %s text" -1 1@ 0@
end
free 2@
end
end
0B43:
But how can I edit this to search for a specific textdraw, what contains for example: "Door"..? I would need something that gives me the position of these textdraws, when it is within the streamed zone. So it would be like an object finder, but only for textdraw /3d text label etc.
Thanks!