CLEO Help Get txd info

CLEO related
Status
Not open for further replies.

Rough

Active member
Joined
Mar 7, 2015
Messages
42
Reaction score
4
Hello! I need your help please.

Is there a way to determine the "Wanted 1"text as available.
https://prnt.sc/ssmjex

I need a way to determine the existance of that text " Wanted 1" to use it further.

I tried with
0C5D: samp textdraw 0@ is_exists
but actually that's not a textdraw.. so.. do you have any ideas?

Thank you very much!
 

ItsRobinson

Active member
Joined
Nov 16, 2017
Messages
105
Reaction score
20
PHP:
20@ = 0 //Player ID, example

alloc 5@ 1024
FOR 0@ = 0 TO 1024 //1024 = max 3d text labels
    0C46: samp get_3d_text_info_by_id 0@ string_ptr 5@ color 2@ position $NOT_USED $NOT_USED $NOT_USED view_distance $NOT_USED show_behind_walls $NOT_USED attached_to_player 3@ attached_to_vehicle $NOT_USED
    if
        003B: 3@ == 20@ //label attached to player is equal to our player id
    then
        if
            0AD4: $NOT_USED = scan_string 5@ format "Wanted %d" 4@
        then
            chatmsg "ID: %d, Wanted Level: %d" -1 20@ 4@
        end 
        BREAK
    end
          
END
free 5@

Try something like this? Not sure if it'll work, never used the 0C46 opcode before.
 
Status
Not open for further replies.
Top