Read TextLabel above Head

Scraatch

Active Member
Joined
Jan 14, 2017
Messages
34
Likes
0
Points
11
Location
Germany
#1
I search for a function to read the TextLabels above the Head from other players.
I hope that someone can help me
 

hypnotic

Well-Known Member
Joined
Jun 30, 2015
Messages
269
Likes
0
Points
16
10
#2
Text Label you mean like "T" chat visible above player's head after typing something to other? = client-side server.
 
OP
OP
Scraatch

Scraatch

Active Member
Joined
Jan 14, 2017
Messages
34
Likes
0
Points
11
Location
Germany
#3
I mean the text over the head, on many server when a player sends a message, the message will be shown for a time over the head of the player and i want to get this text and coordinates
 

Momo92

Active Member
Joined
Aug 21, 2013
Messages
42
Likes
0
Points
56
#4
This function works with the SAMP UDF:
Code:
getChatBubbleText(playerID) {
	if (playerID < 0 || playerID > SAMP_PLAYER_MAX - 1 || !checkHandles())
		return false

	dwAddress := readDWORD(hGTA, dwSAMP + 0x21A0DC)
	return readDWORD(hGTA, dwAddress + playerID * 0x118) ? readString(hGTA, dwAddress + playerID * 0x118 + 4, 256) : ""
}
The coordinates are just player position with z+3.0 or something, don't know why you'd need them.
 
OP
OP
Scraatch

Scraatch

Active Member
Joined
Jan 14, 2017
Messages
34
Likes
0
Points
11
Location
Germany
#5
i mean this thing in the red circle. this are not chatbubbles, so i testet it and i cant read them out

http://i.epvpimg.com/EAdVcab.jpg
 

0x688

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,048
Likes
20
Points
88
#6
Loop text label pool.
Check attached playerid == target playerid
profit

https://github.com/BlastHackNet/mod_s0beit_sa/blob/master/src/samp.h#L770
 
Top