Advertisement
Guest User

Untitled

a guest
May 7th, 2019
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.95 KB | None | 0 0
  1. Public Class Form1
  2.     Dim DllFIle As String = "Hades.dll"
  3.     Dim p() As Process
  4.     Public Sub Inject()
  5.         If System.IO.File.Exists(DllFIle) Then
  6.             If System.IO.File.Exists("core.exe") Then
  7.                 Process.Start("core.exe", "--process-name GTA5.exe --inject " + DllFIle)
  8.             End If
  9.         Else
  10.             MessageBox.Show("cannot find :" + DllFIle)
  11.             Process.Start("https://hadesgta.com/forum/index.php?forums/15/")
  12.         End If
  13.     End Sub
  14.     Public Sub GTACheck()
  15.         p = Process.GetProcessesByName("GTA5")
  16.         If p.Count > 0 Then
  17.             Inject()
  18.         Else
  19.             MessageBox.Show("start Grand theft auto V manually")
  20.         End If
  21.     End Sub
  22.  
  23.     Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles PictureBox2.Click
  24.         Process.Start("https://hadesgta.com/")
  25.     End Sub
  26.  
  27.     Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click
  28.         GTACheck()
  29.     End Sub
  30.  
  31.     Private Sub PictureBox3_Click(sender As Object, e As EventArgs) Handles PictureBox3.Click
  32.         If My.Settings.Steam = True Then
  33.             Process.Start("steam://rungameid/271590")
  34.         Else
  35.             MessageBox.Show("select the 'GTA V' folder")
  36.             If (FolderBrowserDialog1.ShowDialog() = DialogResult.OK) Then
  37.                 My.Settings.GTA_folder = FolderBrowserDialog1.SelectedPath
  38.                 My.Settings.Toggle_GTA = True
  39.                 My.Settings.Save()
  40.             End If
  41.         End If
  42.     End Sub
  43.  
  44.     Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.CheckedChanged
  45.         If CheckBox1.Checked = True Then
  46.             My.Settings.Steam = True
  47.         Else
  48.             My.Settings.Steam = False
  49.         End If
  50.     End Sub
  51.  
  52.     Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  53.         CheckBox1.Checked = My.Settings.Steam
  54.     End Sub
  55. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement