CLEO Help Get Player's HealthBar/ArmorBar/NameTag Position

CLEO related

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
270
Location
Pluto
I am trying to add some additional overlays near the Player's Health/Armor/NameTag Information. But I am currently stuck on getting the 2D/3D Coordinates of the following
  1. HealthBar Position
  2. ArmorBar Position
  3. NameTag Position

Does anybody know a documentation/memory pointers where I can get the Position of the following? I Appreciate any Suggestions and Workarounds, Cheers!
 

Attachments

  • sa-mp-053.png
    sa-mp-053.png
    572.7 KB · Views: 132

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
~~ For Name Tag Stuff ~~

Looks like it is a player 3d label, so you should get players label information from 3d text pool.

I have been started working with 3d text stuff, but because of a lot days working i haven't time go forward.

Here some my working stuff
R1
PHP:
IF 0AA2: 31@ = "samp.dll"
THEN
    31@ += 0x21A0F8 // SAMP_INFO_OFFSET
    0A8D: 31@ readMem 31@ sz 4 vp 0
    31@ += 0x3CD // SAMP_PPOOLS_OFFSET
    0A8D: 31@ readMem 31@ sz 4 vp 0
    31@ += 0xC // SAMP_PPOOL_3D_TEXT_OFFSET
    0A8D: 31@ readMem 31@ sz 4 vp 0
    0@ *= 0x4 // 3D_TEXT_ID * 0x4
    005A: 31@ += 0@
// Read 31@ sz 4

You get the idea...

After tomorrow i have day off, so I could help you with that if you still need it.
 
Last edited:

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
270
Location
Pluto
OK, so I Inspected the both stTextLabelPool and stTextdrawPool but seems to not have any relation towards player NameTags. I Suspect pRemotePlayer ->*pVTBL_txtHandler might be usable somehow when getting the NameTag Position, the problem is that I don't know how to make it useful though. Has anybody tried Gettings the NameTag Position before?


Also you could check sobeit source maybe it says something about nametags position sturcture.
I tried Checking, but I there are no definitions related to individual player nametag positions


The tool seems to only change General Colors(Directly Patching SAMP.dll File), which has no relation towards finding player NameTag Positions.

Thanks for Sharing, I'll use its Color memory pointers on separate projects.




Stating my True Objectives, I am trying to Fabricate an interesting WallHack MOD I found on Youtube that Includes Weapon Tags near the player Health/Armor/NameTag:

As you can see on the video, the Weapon Tag Icons Position is Relatively Consistent towards the HealthBar/ArmorBar Position. I already made progress on showing the Weapon Icons, only the icon positioning remains as an obstacle:
 

Attachments

  • 1625031329947.png
    1625031329947.png
    751.1 KB · Views: 37

SobFoX

Expert
Joined
Jul 14, 2015
Messages
1,461
Solutions
5
Reaction score
913
Location
Israel
OK, so I Inspected the both stTextLabelPool and stTextdrawPool but seems to not have any relation towards player NameTags. I Suspect pRemotePlayer ->*pVTBL_txtHandler might be usable somehow when getting the NameTag Position, the problem is that I don't know how to make it useful though. Has anybody tried Gettings the NameTag Position before?



I tried Checking, but I there are no definitions related to individual player nametag positions



The tool seems to only change General Colors(Directly Patching SAMP.dll File), which has no relation towards finding player NameTag Positions.

Thanks for Sharing, I'll use its Color memory pointers on separate projects.




Stating my True Objectives, I am trying to Fabricate an interesting WallHack MOD I found on Youtube that Includes Weapon Tags near the player Health/Armor/NameTag:

As you can see on the video, the Weapon Tag Icons Position is Relatively Consistent towards the HealthBar/ArmorBar Position. I already made progress on showing the Weapon Icons, only the icon positioning remains as an obstacle:
I sent you that the near offset should be: d
Look at the source code of samp (old) where it displays the hp / ap and you will see the calculation they do I have done this before

If you need a download for an old samp source code write to me and I will send it to you
 

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
270
Location
Pluto
I sent you that the near offset should be: d
Look at the source code of samp (old) where it displays the hp / ap and you will see the calculation they do I have done this before

If you need a download for an old samp source code write to me and I will send it to you

I'm interested on taking a peek on the old SAMP source HP pos calculation. Please Post it here if you wouldn't mind.
 
Top