Help With Simple ESP GTASA

Expl01T3R

Active member
Joined
Nov 20, 2022
Messages
65
Reaction score
9
Location
Czech Republic
Show us your code first, then we could figure something out.
Its easy to ask for sources and just copy&paste them.
Atleast you can search for some existing esp sources, I bet there is many of them.
 

DutchGay101

Member
Joined
Sep 15, 2023
Messages
11
Reaction score
0
C++:
                CPool<CPed, CCopPed>* pedPool = CPools::ms_pPedPool;

                if (pedPool) {
                    for (int i = 0; i < pedPool->m_nSize; i++) {
                        if (!pedPool->IsFreeSlotAtIndex(i)) {
                            CPed* ped = pedPool->GetAt(i);
                            if (ped) {

                                while (true)
                                {
                                    ESP_Bones(i, ped);
it works perfect , but draws for a second only
 

Expl01T3R

Active member
Joined
Nov 20, 2022
Messages
65
Reaction score
9
Location
Czech Republic
C++:
                CPool<CPed, CCopPed>* pedPool = CPools::ms_pPedPool;

                if (pedPool) {
                    for (int i = 0; i < pedPool->m_nSize; i++) {
                        if (!pedPool->IsFreeSlotAtIndex(i)) {
                            CPed* ped = pedPool->GetAt(i);
                            if (ped) {

                                while (true)
                                {
                                    ESP_Bones(i, ped);
it works perfect , but draws for a second only
Lmfao, this is not full code but why for cycle and then infinite while loop cycle inside? it looks like when i is 1 then it completelly freezes current thread. lmfao
If you are running this code in loop, then your while(true) inside is completelly useless shit which you should remove.
 

DutchGay101

Member
Joined
Sep 15, 2023
Messages
11
Reaction score
0
sorry thats not the code , here is the code i talked about:
Code:
if (bools::bones)
{
    for (int i = 0; i < MAX_PLAYERS; i++)
    {
        CPool<CPed, CCopPed>* pedPool = CPools::ms_pPedPool;

        CPed* ped = pedPool->GetAt(i);
        if (ped)
        {
            ESP_Bones(i, ped);
        }
    }
}
 

Expl01T3R

Active member
Joined
Nov 20, 2022
Messages
65
Reaction score
9
Location
Czech Republic
sorry thats not the code , here is the code i talked about:
Code:
if (bools::bones)
{
    for (int i = 0; i < MAX_PLAYERS; i++)
    {
        CPool<CPed, CCopPed>* pedPool = CPools::ms_pPedPool;

        CPed* ped = pedPool->GetAt(i);
        if (ped)
        {
            ESP_Bones(i, ped);
        }
    }
}
discord: watersmoke, contact me i will help
 
Top