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 Coding & Resources › how to make a simple esp? [LUA]

Questionhow to make a simple esp? [LUA]

Posts 1–6 of 6 · Page 1 of 1
EH
ehabgaming
how to make a simple esp? [LUA]
is there a video or source code i can look at?
#1 · 7y ago
SU
suchisgood
Quote Originally Posted by ehabgaming View Post
is there a video or source code i can look at?
Simple ESP is just HUDPaint and draw.roundedbox with ScrW() + Height!
#2 · 7y ago
Mestima
Mestima
Very simple shit. Special for you.
Code:
local lply = LocalPlayer()
hook.Add("HUDPaint", "ESPShit", function()
	for __,ply in pairs(player.GetAll()) do
		if !ply:Alive() then continue end
		if ply:GetPos():Distance(lply:GetPos()) > 3000 then return end			
		local data = "[" .. ply:Nick() .. "][" .. ply:EntIndex() .. "]" .. "[" .. ply:GetNWString("usergroup") .. "]"
		local pos = (ply:EyePos() + Vector(0,0,20)):ToScreen()
		draw.SimpleTextOutlined(data, "Trebuchet18", pos.x, pos.y, Color(255,255,0), 0,0,1, Color(0,0,0))
	end
end)
#3 · 7y ago
TE
TE4T
Quote Originally Posted by ehabgaming View Post
is there a video or source code i can look at?
https://******.com/LennyPenny/Lennys...espwh.lua#L334
or just look at the main board theres plenty of terrible esps you can look at instead

Quote Originally Posted by Mestima View Post
Very simple shit. Special for you.
ah yes so simple but youve somehow messed it all up
Code:
local lp    = LocalPlayer ()
local dist  = 3000 * 3000
local col   = Color (0xFF, 0xB6, 0xC1) -- make me outside and use a pretty colour (this is lightpink :D)

hook.Add ('HUDPaint', ('%s e_spshit'):format (tostring {}), function ()

	local lppos = lp:GetPos () -- store localplayer pos as you dont need to get it everytime in a loop

	local plys = player.GetAll ()
	for a = 1, player.GetCount () do -- stop using pairs the table is sequential
		local ply = plys [a]

		if     ply == lp                              then continue end -- no self
		if not ply:Alive  ()                          then continue end -- no garry operators please
		if     ply:GetPos ():DistToSqr (lppos) > dist then continue end -- use disttosqr and dont return

		local pos = (ply:EyePos () + Vector (0, 0, 20)):ToScreen ()

		-- draw is just a buffer for surface, we arent stupid (hopefully) so we just use surface like normal human beings
		surface.SetFont      'Trebuchet18'
		surface.SetTextColor (col         )
		surface.SetTextPos   (pos.x, pos.y)
		surface.DrawText     (('[%s][%s][%s]'):format (ply:Nick (), ply:EntIndex (), ply:GetUserGroup ())) -- format is much cleaner and not as retarded as '..', use a cache and table.concat if u want "fast"
	end
end)
#4 · 7y ago
RO
Roman!
Very new to coding and what not, i have no other idea how to say it but, how would i use this code to implement it into my game?
#5 · 7y ago
PH
phoondos1
make a lua script and copy paste, then use a bypass and execute ingame
#6 · 6y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • How to make private simple glow esp? (I want video tutorial)By AK47-u in Counter-Strike 2 Tutorials
    5Last post 8y ago
  • How to make a simple grunge tutorialBy SpaWn in Tutorials
    2Last post 17y ago
  • How to make a simple Car SignatureBy SpaWn in Tutorials
    10Last post 17y ago
  • *Tut* How To Make A Simple NotepadBy u1111u in Programming Tutorials
    2Last post 16y ago
  • Show Me How To Make A Simple WallHack Cod4 1.7By lovemommy in Programming Tutorial Requests
    0Last post 17y ago

Tags for this Thread

None