Read TextLabel above Head

Scraatch

Active member
Joined
Jan 14, 2017
Messages
76
Reaction score
2
Location
Germany
I search for a function to read the TextLabels above the Head from other players.
I hope that someone can help me
 

Cinaro

Well-known member
Joined
Jun 30, 2015
Messages
277
Reaction score
5
Text Label you mean like "T" chat visible above player's head after typing something to other? = client-side server.
 

Scraatch

Active member
Joined
Jan 14, 2017
Messages
76
Reaction score
2
Location
Germany
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
Reaction score
0
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.
 

Scraatch

Active member
Joined
Jan 14, 2017
Messages
76
Reaction score
2
Location
Germany
i mean this thing in the red circle. this are not chatbubbles, so i testet it and i cant read them out

EAdVcab.jpg
 

0x_

Wtf I'm not new....
Administrator
Joined
Feb 18, 2013
Messages
1,118
Reaction score
166
Loop text label pool.
Check attached playerid == target playerid
profit

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