This is the AMP version of this page.
If you want to load the real page instead, click this text.

Help! How to exclude yourself from drawing ESP

I could be wrong but I'd imagine it would be something like this...

C++:
bool (*get_isLocalPlayer)(void *instance);


void (*old_ESP_Update)(void *instance);
void ESP_Update(void *instance) {
    if(instance!=NULL) {
        bool isLocal = get_isLocalPlayer(instance);
        if(ESP) {
            if(!isLocal) {
                // Your esp code here
            }
         }
    }
    old_ESP_Update(instance);
}



// Under hackthread...


get_isLocalPlayer = (bool(*)(void*)) getAbsoluteAddress(targetLibName, 0xOFFSET);
 
Try it like this...

C++:
bool (*get_isLocalPlayer)(void *instance);

void (*old_player_update)(void *player);
void new_player_update(void *player) {
    if(player != NULL) {
        bool isLocal = get_isLocalPlayer(player);
        if(!isLocal) {
            // Your ESP code
 
i do that and i getting crash cuz i dont know how to hook that bool, i guess u android user, this how hooks look on ios :(
 

Attachments

  • Screenshot 2024-03-29 231618.png
    133.6 KB · Views: 94
To add to what libModz suggested earlier, I think this hook should work for you:
C++:
bool (*get_isLocalPlayer)(void *instance) = (bool (*)(void *))getRealOffset(0x000000); //place the offset

void (*old_player_update)(void *player);
void new_player_update(void *player) {
    if(player != NULL) {
        bool isLocal = get_isLocalPlayer(player);
        if(!isLocal) {
            // Your ESP code

It uses the same getRealOffset function as your hooks. Also make sure that "player" in your update function is the correct instance for the "get_isLocalPlayer" or other bools you use for the check.
 
 

Delete this
C++:
bool (*get_isLocalPlayer)(void *instance);
from on top of the update function. It is not needed

And replace it with the hook
C++:
bool (*get_isLocalPlayer)(void *instance) = (bool (*)(void *))getRealOffset(0x2231668);

Right now the hook seems to be inside of some other setup function. Just move it on top of the update function as I tell you above.
 
That error happens because the get_isLocalPlayer hook is under the update function and not over it. Presumably because you have it in the setup function.

So does the crash happen when you put the hook on top of the update function? If so, maybe try some other bool.
Right now the hook seems to be inside of some other setup function. Just move it on top of the update function as I tell you above.
This should work, but it's possible that it doesn't work like that on your project on iOS.
 
What are you using for your player list ?
If is the esp manager that mean you used a update function . And inside that class does it have fields or a function that is mine or islocal



I found another class that also draws esp on players (there is a small problem but it draws fine) and there is a field public bool AsMe; // 0x189. Will this also work?