local CFG = {} CFG.playerNameColor = Color( 65, 255, 255, 255 ) CFG.playerHealthColor = Color( 255, 65, 65, 255 ) CFG.playerDistColor = Color( 0, 255, 0, 255 ) CFG.playerIcon = Material( "icon16/star.png" ) CFG.showPlayerNames = true CFG.showPlayerHealth = true CFG.showPlayerDist = true CFG.showPlayerIcon = true CFG.showHpBar = true CFG.maxDistance = 2500 local cHack = {} function cHack.ESP() local e = ents.FindByClass( "npc_*" ) for key, value in pairs ( e ) do local pos = value:GetPos() + Vector( 0, 0, 85 ) pos = pos:ToScreen() if CFG.showPlayerNames == true then draw.SimpleTextOutlined( "N: " .. value:GetClass(), "DermaDefaultBold", pos.x, pos.y, CFG.playerNameColor, TEXT_ALIGN_LEFT, TEXT_ALIGN_BOTTOM, 1, Color( 0, 0, 0, 255 )) end if CFG.showPlayerHealth == true then draw.SimpleTextOutlined( "H: " .. value:Health(), "DermaDefaultBold", pos.x, pos.y + 15 , CFG.playerHealthColor, TEXT_ALIGN_LEFT, TEXT_ALIGN_BOTTOM, 1, Color( 0, 0, 0, 255 )) end if CFG.showPlayerDist == true then draw.SimpleTextOutlined( "D: " .. math.Round( value:GetPos():Distance( LocalPlayer():GetPos() ) ), "DermaDefaultBold", pos.x, pos.y + 30 , CFG.playerDistColor, TEXT_ALIGN_LEFT, TEXT_ALIGN_BOTTOM, 1, Color( 0, 0, 0, 255 )) end if CFG.showPlayerIcon == true then surface.SetDrawColor( 255, 255, 255, 255 ) surface.SetMaterial( CFG.playerIcon ) surface.DrawTexturedRect( pos.x, pos.y - 20, 16, 16 ) end local vec1 = value:GetPos() + Vector( 0, 0, 65 ) local vec2 = LocalPlayer():GetShootPos() LocalPlayer():SetEyeAngles( ( vec1 - vec2 ):Angle() ) end end hook.Add( 'HUDPaint', '', cHack.ESP )