Ever thought about downloading the mapex multi hack? it has this including in it along with other stuff such as aimbot.
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.
Ever thought about downloading the mapex multi hack? it has this including in it along with other stuff such as aimbot.
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 );
Then go and download the mapex, it's under the garrys mod / hacks it's got everything you will need in a hack.
Or Ahack, But it can be a bitch for your FPS