QuestionSolvedAll esp scripts don't work for me

Posts 14 of 4 · Page 1 of 1
All esp scripts don't work for me
I've a big problem with all ESP, they don't work even if I'm in singleplayer, they show name and position for a frame (seems like but can be another think during at least 300 milliseconds) and then they both disappear. I've tested the two scripts below:
Code:
        if (E5P == 1) then {
            _color = [0.035,1,0,1];
            _x1 = -0.5;
            _y1 = -0.5;
            _z1 = 0;
    
            _x2 = 0.5;
            _y2 = 0.5;
            _z2 = 1.8;
            onEachFrame {
                _l49 = nearestobjects[player, ["CAManBase"], 1400]; {
                    if ((side _x != side player) && (getPlayerUID _x != "") && ((player distance _x) < 1400)) then {
                    drawLine3d [_x modelToWorld [_x1, _y1, 1], _x modelToWorld [0,0,_z2], _color];
                    drawLine3d [_x modelToWorld [_x2, _y1, 1], _x modelToWorld [0,0,_z2], _color];
                    drawLine3d [_x modelToWorld [_x2, _y2, 1], _x modelToWorld [0,0,_z2], _color];
                    drawLine3d [_x modelToWorld [_x1, _y2, 1], _x modelToWorld [0,0,_z2], _color];
    
                    drawLine3d [_x modelToWorld [_x1, _y1, 1], _x modelToWorld [0, 0, _z1], _color];
                    drawLine3d [_x modelToWorld [_x2, _y1, 1], _x modelToWorld [0, 0, _z1], _color];
                    drawLine3d [_x modelToWorld [_x2, _y2, 1], _x modelToWorld [0, 0, _z1], _color];
                    drawLine3d [_x modelToWorld [_x1, _y2, 1], _x modelToWorld [0, 0, _z1], _color];
    
                    drawLine3d [_x modelToWorld [_x1, _y1, 1], _x modelToWorld [_x2, _y1, 1], _color];
                    drawLine3d [_x modelToWorld [_x2, _y1, 1], _x modelToWorld [_x2, _y2, 1], _color];
                    drawLine3d [_x modelToWorld [_x2, _y2, 1], _x modelToWorld [_x1, _y2, 1], _color];
                    drawLine3d [_x modelToWorld [_x1, _y2, 1], _x modelToWorld [_x1, _y1, 1], _color];
                    
                    drawLine3d [[getposatl player select 0, getposatl player select 1, getposatl player select 2],ASLToATL eyePos _x,_color];
                    } else {
                        if ((getPlayerUID _x != "") && ((player distance _x) < 1000)) then {
                            drawLine3d [_x modelToWorld [_x1, _y1, 1], _x modelToWorld [0,0,_z2], _color];
                            drawLine3d [_x modelToWorld [_x2, _y1, 1], _x modelToWorld [0,0,_z2], _color];
                            drawLine3d [_x modelToWorld [_x2, _y2, 1], _x modelToWorld [0,0,_z2], _color];
                            drawLine3d [_x modelToWorld [_x1, _y2, 1], _x modelToWorld [0,0,_z2], _color];
    
                            drawLine3d [_x modelToWorld [_x1, _y1, 1], _x modelToWorld [0, 0, _z1], _color];
                            drawLine3d [_x modelToWorld [_x2, _y1, 1], _x modelToWorld [0, 0, _z1], _color];
                            drawLine3d [_x modelToWorld [_x2, _y2, 1], _x modelToWorld [0, 0, _z1], _color];
                            drawLine3d [_x modelToWorld [_x1, _y2, 1], _x modelToWorld [0, 0, _z1], _color];
    
                            drawLine3d [_x modelToWorld [_x1, _y1, 1], _x modelToWorld [_x2, _y1, 1], _color];
                            drawLine3d [_x modelToWorld [_x2, _y1, 1], _x modelToWorld [_x2, _y2, 1], _color];
                            drawLine3d [_x modelToWorld [_x2, _y2, 1], _x modelToWorld [_x1, _y2, 1], _color];
                            drawLine3d [_x modelToWorld [_x1, _y2, 1], _x modelToWorld [_x1, _y1, 1], _color];
                            
                            drawLine3d [[getposatl player select 0, getposatl player select 1, getposatl player select 2],ASLToATL eyePos _x,_color];
                        };
                    };
                }
                foreach AllUnits;
            };
        } else {
            onEachFrame {
                nil
            };
        };
Diamond Wallhack from extasy, I just removed all DrawIcon3D to see if it is this that doesn't work but it seems not to be.


And this one:
Code:
        if (E5P == 1) then {
            onEachFrame {
                _l49 = nearestobjects[player, ["CAManBase"], 1400]; {
                    if ((side _x != side player) && (getPlayerUID _x != "") && ((player distance _x) < 1400)) then {
                    drawIcon3D["", [1, 0, 0, 1], [visiblePosition _x select 0, visiblePosition _x select 1, (getPosATL _x select 2) + 2], 0.1, 0.1, 45, (format["%2 : %1m", round(player distance _x), name _x]), 1, 0.04, "TahomaB"]
                    } else {
                        if ((getPlayerUID _x != "") && ((player distance _x) < 1000)) then {
                            drawIcon3D["", [0, 0.5, 1, 1], [visiblePosition _x select 0, visiblePosition _x select 1, (getPosATL _x select 2) + 2], 0.1, 0.1, 45, (format["%2 : %1m", round(player distance _x), name _x]), 1, 0.04, "TahomaB"]
                        };
                    };
                }
                foreach AllUnits; //changed it to works also in singleplayer
            };
        } else {
            onEachFrame {
                nil
            };
        };
I don't know who is the original creator


Note that you can't run them in a while loop, as you can see here: https://community.bistudio.com/wiki/drawIcon
How can I make it works? Anyway thank a lots for reading this thread in its entirly.
I've solved my problem, can OP close this thread please
btw, this is how i knew that extasy hosting leeched his "wallhack" (esp), because he forgot to remove this line of code

Code:
_l49 = nearestobjects[player, ["CAManBase"], 1400];
No response after two days, assuming solved.
/Closed
Posts 14 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?