Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Steam Games Hacks & Cheats › Garry's Mod Hacks & Cheats › Garry's Mod Discussions & Help › Basic ESP Script

Basic ESP Script

Posts 1–6 of 6 · Page 1 of 1
CL
cl0t
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.
#1 · 12y ago
ST
stizza
Ever thought about downloading the mapex multi hack? it has this including in it along with other stuff such as aimbot.
#2 · 12y ago
ST
stizza
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 );
#3 · 12y ago
CL
cl0t
It doesn't.
#4 · 12y ago
ST
stizza
Then go and download the mapex, it's under the garrys mod / hacks it's got everything you will need in a hack.
#5 · 12y ago
BigBadWilly
BigBadWilly
Or Ahack, But it can be a bitch for your FPS
#6 · 12y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • Creating a Basic Captcha scriptBy Ugleh in Web Languages
    5Last post 16y ago
  • I Found an old ESP script i just edited it :P (1.7.2.4)By +_Jack NorriS_+ in DayZ Mod & Standalone Hacks & Cheats
    87Last post 14y ago
  • i need change colur player esp scriptBy seabkai in DayZ Mod & Standalone Hacks & Cheats
    2Last post 13y ago
  • [TUT] Basic GSC ScriptingBy AZUMIKKEL in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    18Last post 16y ago
  • [Tutorial]Basic GSC ScriptingBy xbeatsszzx in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    22Last post 16y ago

Tags for this Thread

None