getting player hp

clau666

Member
Joined
Dec 7, 2018
Messages
8
Reaction score
0
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

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
HP
PHP:
0@ = 0xB6F5F0  
0@ += 0x540  
0A8D: 1@ = read_memory 0@ size 4 virtual_protect 0

ARM
PHP:
0@ = 0xB6F5F0  
0@ += 0x548  
0A8D: 1@ = read_memory 0@ size 4 virtual_protect 0
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
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
426
Reaction score
165
Location
LINK CLEO DICE HACK HERE!
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..
 

clau666

Member
Joined
Dec 7, 2018
Messages
8
Reaction score
0
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
426
Reaction score
165
Location
LINK CLEO DICE HACK HERE!
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