getting player hp

Joined
Dec 7, 2018
Messages
6
Likes
0
Points
1
1
#1
im using this
Code:
CPed + 0x540 = [float] Health
but im getting weird values such
Code:
 player hp = 3.28306e+08
 player hp = 3.283e+08
 player hp = 3.28304e+08
 player hp = 3.28306e+08
 player hp = 3.283e+08
 player hp = 3.28304e+08
 player hp = 3.28306e+08
 

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
1,136
Likes
103
Points
78
Location
Lithuania
Website
ugbase.eu
15
#4
C++:
uintptr_t playerHpPtr = 0xB6F5F0 + 0x548 ;

uintptr_t playerHpValue;
ReadProcessMemory(pHandle, (LPVOID)playerHpPtr, &playerHpValue, sizeof(playerHpValue), NULL;
cout <<  playerHpValue << float << endl;
 

user88

Well-Known Member
Joined
Jun 29, 2017
Messages
412
Likes
154
Points
58
Location
LINK CLEO DICE HACK HERE!
15
#5
C++:
uintptr_t playerHpPtr = 0xB6F5F0 + 0x548 ;

uintptr_t playerHpValue;
ReadProcessMemory(pHandle, (LPVOID)playerHpPtr, &playerHpValue, sizeof(playerHpValue), NULL;
cout <<  playerHpValue << float << endl;
Wrong nigga

First read cped as dword after result + 0x540 as


float hp = *(float*)((*(DWORD*)(0xB6F5F0)) + 0x540);

Well im codens this in phone..
 
OP
OP
C
Joined
Dec 7, 2018
Messages
6
Likes
0
Points
1
1
#7
0xB6F5F0 <- thats the local player.
i want to get the hp of the entities (actors).
i tried on local player and im getting good values.

http://prntscr.com/o8v4bu (tested on local player "0xB6F5F0 ")

if im using this "0xB74490 + 0x540" i got weird value such "2.8".

Code:
            std::uintptr_t active_actor = *( std::uintptr_t * ) * ( std::uintptr_t * ) 0xB74490;
Code:
            float hp = *( float * ) ( ( *( std::uintptr_t* ) ( active_actor ) ) + 0x540 );
 
Last edited:

user88

Well-Known Member
Joined
Jun 29, 2017
Messages
412
Likes
154
Points
58
Location
LINK CLEO DICE HACK HERE!
15
#8
0xB6F5F0 <- thats the local player.
i want to get the hp of the entities (actors).
i tried on local player and im getting good values.

http://prntscr.com/o8v4bu (tested on local player "0xB6F5F0 ")

if im using this "0xB74490 + 0x540" i got weird value such "2.8".

Code:
            std::uintptr_t active_actor = *( std::uintptr_t * ) * ( std::uintptr_t * ) 0xB74490;
Code:
            float hp = *( float * ) ( ( *( std::uintptr_t* ) ( active_actor ) ) + 0x540 );
Are u dumb? Just use my code
 
Top