Help! Help

BeginnerBR

Solid & Active Platinian
Original poster
Sep 4, 2022
62
14
8
24
Brasil
I did esp in some games, but there is one that I'm not getting, every time I put the offset that indicates the entity's life, the game crashes, I've already checked the player update but it still doesn't work
 

BeginnerBR

Solid & Active Platinian
Original poster
Sep 4, 2022
62
14
8
24
Brasil
provide example
when I put field offset referring to the life of entities in the game, it crashes but if I put any other random offset, the game does not crash but nothing happens

float GetPlayerHealth(void* player) {
return *(float *)((uint64_t)player + 0x84);
}

bool PlayerAlive(void *player) {
return player != NULL && GetPlayerHealth(player) > 0;
}

bool IsPlayerDead(void *player) {
return player == NULL && GetPlayerHealth(player) < 1;
}
 

alsya

Solid & Active Platinian
Oct 21, 2021
80
18
8
unknown
when I put field offset referring to the life of entities in the game, it crashes but if I put any other random offset, the game does not crash but nothing happens

float GetPlayerHealth(void* player) {
return *(float *)((uint64_t)player + 0x84);
}

bool PlayerAlive(void *player) {
return player != NULL && GetPlayerHealth(player) > 0;
}

bool IsPlayerDead(void *player) {
return player == NULL && GetPlayerHealth(player) < 1;
}
this function is correct, what is wrong is the camera and worldtoposition function, try to fix it yourself
 

BeginnerBR

Solid & Active Platinian
Original poster
Sep 4, 2022
62
14
8
24
Brasil
But worldtoposition and get_camera are at the right offset, I even tested Get_current in this game but it crashes and the others I made worked
 

HekaHeka709

Solid & Active Platinian
Dec 29, 2021
57
9
8
20
Phillipines
Log everything starting from getting entities getting their health their position. If it's all normal, then the problem is the worldtoposition.