C / C++ ESP Drawing Limit

DutchGay101

Member
Joined
Sep 15, 2023
Messages
17
Reaction score
2
Hey i have a problem with my esp, when i draw it it works fine but the limit is only up to 300m, some esp hacks even have up to 30000m and mine just doesnt draw above 300m here is the code that im using to draw the esp:
C++:
if (Bools.Visuals.BoneESP)
{
    for (int i = 0; i < MAX_PLAYERS; i++)
    {
        CPool<CPed, CCopPed>* pedPool = CPools::ms_pPedPool;

        CPed* pPed = pedPool->GetAt(i);
        if (pPed)
        {
            DrawBones(i, pPed);
        }
    }
}
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,161
Solutions
5
Reaction score
894
Location
Lithuania
Hey i have a problem with my esp, when i draw it it works fine but the limit is only up to 300m, some esp hacks even have up to 30000m and mine just doesnt draw above 300m here is the code that im using to draw the esp:
C++:
if (Bools.Visuals.BoneESP)
{
    for (int i = 0; i < MAX_PLAYERS; i++)
    {
        CPool<CPed, CCopPed>* pedPool = CPools::ms_pPedPool;

        CPed* pPed = pedPool->GetAt(i);
        if (pPed)
        {
            DrawBones(i, pPed);
        }
    }
}
Max streamed ped distance is 300 - 400m
 
Last edited:

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,122
Reaction score
173
What? I just mentioned some esps draw up to 11000m not 300m
So they are maybe not iterating ped pools only? Are you trying this on samp or mta? It's hard to give further suggestions without knowing.
The MAX_PLAYERS macro reminds of samp so.. SAMP streaming defaults to 300m but you have f.e. marker sync to pull data from depending on the server settings. With your current src you're out of luck as soon as the player gets streamed out by samp.
 

Expl01T3R

Active member
Joined
Nov 20, 2022
Messages
81
Reaction score
9
Location
Czech Republic
Exactly, you need to catch outgoing packet: ID_MARKERS_SYNC, read it and then modify ur esp to render based on data from ID_MARKERS_SYNC.
 

SobFoX

Expert
Joined
Jul 14, 2015
Messages
1,430
Solutions
4
Reaction score
904
Location
Israel
So funny, no one noticed that he was even talking about it MTA
 

Expl01T3R

Active member
Joined
Nov 20, 2022
Messages
81
Reaction score
9
Location
Czech Republic
So funny, no one noticed that he was even talking about it MTA
He needs it for MTA? Where he said it then?

Hey i have a problem with my esp, when i draw it it works fine but the limit is only up to 300m, some esp hacks even have up to 30000m and mine just doesnt draw above 300m here is the code that im using to draw the esp
- NOPE
What? I just mentioned some esps draw up to 11000m not 300m
- NOPE


or I'm just blind?
 

DutchGay101

Member
Joined
Sep 15, 2023
Messages
17
Reaction score
2
So they are maybe not iterating ped pools only? Are you trying this on samp or mta? It's hard to give further suggestions without knowing.
The MAX_PLAYERS macro reminds of samp so.. SAMP streaming defaults to 300m but you have f.e. marker sync to pull data from depending on the server settings. With your current src you're out of luck as soon as the player gets streamed out by samp.
Im working on mta not samp
 

SobFoX

Expert
Joined
Jul 14, 2015
Messages
1,430
Solutions
4
Reaction score
904
Location
Israel
What does has to do with the streaming distance?
You have access to everything there, you can get information about every player/vehicle/object on the map, read and then you will understand
 
Top