Results 1 to 6 of 6
  1. #1
    cl0t's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    Basic ESP Script

    Hi,

    I have been searching for one of these for too long now, so I've come here for help. I would like a simple esp script that displays the player's name, and current health above their head. There's no need for a box around the player model, I just want the name and health of each player. I'll take whatever I get (if it functions properly), I'm not greedy.


    Thanks in advance to whoever makes it.

  2. #2
    stizza's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0
    My Mood
    Confused
    Ever thought about downloading the mapex multi hack? it has this including in it along with other stuff such as aimbot.

  3. #3
    stizza's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0
    My Mood
    Confused
    also just after one search i found this and maybe you could test it to see if it works ;D

    --[[
    Name: s0beit.lua
    Product: Client-side LUA hook
    Author: s0beit
    ]]--

    --Start of config
    local s0beitEspCvar = CreateClientConVar( "s0beit_esp", 1, true, false )
    local s0beitCroCvar = CreateClientConVar( "s0beit_xhair", 0, true, false )
    --End of config

    local function HeadPos(ply)
    if ValidEntity(ply) then
    local hbone = ply:LookupBone("ValveBiped.Bip01_Head1")
    return ply:GetBonePosition(hbone)
    else return end
    end

    local function Visible(ply)
    local trace = {start = LocalPlayer():GetShootPos(),endpos = HeadPos(ply),filter = {LocalPlayer(), ply}}
    local tr = util.TraceLine(trace)
    if tr.Fraction == 1 then
    return true
    else
    return false
    end
    end

    local function IsSteamFriend( ply )
    return ply:GetFriendStatus() == "friend"
    end

    local function FillRGBA(x,y,w,h,col)
    surface.SetDrawColor( col.r, col.g, col.b, col.a );
    surface.DrawRect( x, y, w, h );
    end

    local function OutlineRGBA(x,y,w,h,col)
    surface.SetDrawColor( col.r, col.g, col.b, col.a );
    surface.DrawOutlinedRect( x, y, w, h );
    end

    local function DrawCrosshair()
    local w = ScrW() / 2;
    local h = ScrH() / 2;

    FillRGBA( w - 5, h, 11, 1, Color( 255, 0, 0, 255 ) );
    FillRGBA( w, h - 5, 1, 11, Color( 255, 0, 0, 255 ) );
    end

    function DrawESP()
    if s0beitEspCvar:GetInt() == 1 then
    for k, v in pairs(ents.GetAll()) do
    if( ValidEntity(v) and v ~= LocalPlayer() ) then
    if( v:IsNPC() ) then
    local drawColor = Color(255, 255, 255, 255);
    local drawPosit = v:GetPos():ToScreen();

    if( Visible(v) ) then
    drawColor = Color( 255, 0, 0, 255 );
    else
    drawColor = Color( 0, 255, 0, 255 );
    end

    local textData = {}

    textData.pos = {}
    textData.pos[1] = drawPosit.x;
    textData.pos[2] = drawPosit.y;
    textDat*****lor = drawColor;
    textData.text = v:GetClass();
    textData.font = "DefaultFixed";
    textData.xalign = TEXT_ALIGN_CENTER;
    textData.yalign = TEXT_ALIGN_CENTER;
    draw.Text( textData );

    elseif( v:IsPlayer() and v:Health() > 0 and v:Alive() ) then
    local drawColor = team.GetColor(v:Team());
    local drawPosit = v:GetPos():ToScreen();

    if( Visible(v) ) then
    drawColor.a = 255;
    else
    drawColor.r = 255 - drawColor.r;
    drawColor.g = 255 - drawColor.g;
    drawColor.b = 255 - drawColor.b;
    end

    local textData = {}

    textData.pos = {}
    textData.pos[1] = drawPosit.x;
    textData.pos[2] = drawPosit.y;
    textDat*****lor = drawColor;
    textData.text = v:GetName();
    textData.font = "DefaultFixed";
    textData.xalign = TEXT_ALIGN_CENTER;
    textData.yalign = TEXT_ALIGN_CENTER;

    draw.Text( textData );

    local max_health = 100;

    if( v:Health() > max_health ) then
    max_health = v:Health();
    end

    local mx = max_health / 4;
    local mw = v:Health() / 4;

    local drawPosHealth = drawPosit;

    drawPosHealth.x = drawPosHealth.x - ( mx / 2 );
    drawPosHealth.y = drawPosHealth.y + 10;

    FillRGBA( drawPosHealth.x - 1, drawPosHealth.y - 1, mx + 2, 4 + 2, Color( 0, 0, 0, 255 ) );
    FillRGBA( drawPosHealth.x, drawPosHealth.y, mw, 4, drawColor );
    end
    end
    end
    end
    end

    function DrawXHair()
    if( s0beitCroCvar:GetInt() == 1 ) then
    DrawCrosshair();
    end
    end

    hook.Add( "HUDPaint", "DrawESP", DrawESP );

  4. #4
    Threadstarter
    New Member
    cl0t's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    It doesn't.

  5. #5
    stizza's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0
    My Mood
    Confused
    Then go and download the mapex, it's under the garrys mod / hacks it's got everything you will need in a hack.

  6. #6
    BigBadWilly's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Canada,Ontario
    Posts
    631
    Reputation
    10
    Thanks
    160
    My Mood
    Relaxed
    Or Ahack, But it can be a bitch for your FPS

Similar Threads

  1. i need change colur player esp script
    By seabkai in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 2
    Last Post: 10-21-2012, 05:33 PM
  2. [Release] I Found an old ESP script i just edited it :P (1.7.2.4)
    By +_Jack NorriS_+ in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 87
    Last Post: 08-25-2012, 09:42 AM
  3. [Tutorial]Basic GSC Scripting
    By xbeatsszzx in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 22
    Last Post: 08-17-2010, 01:35 AM
  4. [TUT] Basic GSC Scripting
    By AZUMIKKEL in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 18
    Last Post: 08-12-2010, 08:04 AM
  5. Creating a Basic Captcha script
    By Ugleh in forum Web Languages
    Replies: 5
    Last Post: 02-22-2010, 01:28 PM