Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 13:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



i made a hack for gta and it doesn't work

Discussion on i made a hack for gta and it doesn't work within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2012
Posts: 16
Received Thanks: 4
i made a hack for gta and it doesn't work

hello guys i made a script for gta san andreas to add money but it doesn't work what should i do

Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 174, 142, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("Money", 56, 24, 81, 25)
$Button1 = GUICtrlCreateButton("start", 48, 72, 81, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
Case $Button1
   _Hack()		 
	EndSwitch
WEnd
Func _Hack(); This is the functions which turns on the hacks when you start S4 League.
	GUISetState(@SW_HIDE);
	ToolTip("Start Mta!",0,0); This is up in the corner which says Start S4 League!
	$WAIT = ProcessWait("Gta_sa.exe"); Waiting For The Process
	$PID = ProcessExists("Gta_sa.exe"); He found ProcessName.exe
	Sleep(500);Takes a little break..
	$OPEN = _MemoryOpen ($PID); The memory .. which makes the functions work.
	If GUICtrlRead($Checkbox1) = 1 Then
		_MemoryWrite(0xB7CE50,$OPEN,"9000000","long")
	EndIf
	Exit
EndFunc
momotd is offline  
Old 11/29/2013, 19:47   #2



 
Acid's Avatar
 
elite*gold: 6851
The Black Market: 186/0/0
Join Date: Oct 2008
Posts: 52,122
Received Thanks: 11,067
Arrow General Gaming Discussion -> Grand Theft Auto

#moved
Acid is offline  
Old 11/29/2013, 20:53   #3
 
Mephisto''s Avatar
 
elite*gold: 0
Join Date: Nov 2013
Posts: 2
Received Thanks: 2
Quote:
Originally Posted by momotd View Post
hello guys i made a script for gta san andreas to add money but it doesn't work what should i do

Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 174, 142, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("Money", 56, 24, 81, 25)
$Button1 = GUICtrlCreateButton("start", 48, 72, 81, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
Case $Button1
   _Hack()		 
	EndSwitch
WEnd
Func _Hack(); This is the functions which turns on the hacks when you start S4 League.
	GUISetState(@SW_HIDE);
	ToolTip("Start Mta!",0,0); This is up in the corner which says Start S4 League!
	$WAIT = ProcessWait("Gta_sa.exe"); Waiting For The Process
	$PID = ProcessExists("Gta_sa.exe"); He found ProcessName.exe
	Sleep(500);Takes a little break..
	$OPEN = _MemoryOpen ($PID); The memory .. which makes the functions work.
	If GUICtrlRead($Checkbox1) = 1 Then
		_MemoryWrite(0xB7CE50,$OPEN,"9000000","long")
	EndIf
	Exit
EndFunc
You should learn Auto-It first and don't try to copy a source
Mephisto' is offline  
Thanks
2 Users
Old 11/29/2013, 22:12   #4


 
elite*gold: 1091
Join Date: Jun 2007
Posts: 19,836
Received Thanks: 7,180
Arrow Grand Theft Auto -> AutoIt

#moved
Mostey is offline  
Old 11/29/2013, 22:22   #5
 
elite*gold: 1000
Join Date: Apr 2012
Posts: 1,003
Received Thanks: 208
Wrong address?
qkuh is offline  
Old 11/29/2013, 23:20   #6
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Try to do this
Code:
Local $iValue = 500000

$hMemory = _MemoryOpen(ProcessExists("gta_sa.exe"))
_MemoryWrite(0xB7CE50, $hMemory, $iValue, 'int')
_MemoryWrite(0xB7CE54, $hMemory, $iValue, 'int')
_MemoryWrite(0xBAA430, $hMemory, $iValue, 'int')
_MemoryClose($hMemory)
alpines is offline  
Old 12/01/2013, 21:35   #7
 
erudite's Avatar
 
elite*gold: 338
Join Date: Aug 2010
Posts: 533
Received Thanks: 201
PHP Code:
If GUICtrlRead($Checkbox1) = 1 Then
        _MemoryWrite
(0xB7CE50$OPEN9000000"long")
    EndIf 
Try this.


Are you sure the address is correct?
erudite is offline  
Old 12/01/2013, 22:12   #8
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
No you don't need the baseaddress. The part I posted works fine for me. Maybe it does for him/her too.
alpines is offline  
Reply


Similar Threads Similar Threads
HACK doesn't work
01/07/2012 - S4 League - 10 Replies
hi , i was using a trainer called Tron Trainer.exe and all other hacks too but when i use it i press on patcher then Press start after the steps Of HGWC i get a error Saying Project S4Cilent.exe Has Stopped working O.o anyone can help and i reinstalled the game + hack 3 times nothing happened and restarted my cmp 5 times O.o
If a Hack Doesn´t Work
11/15/2010 - CrossFire Hacks, Bots, Cheats & Exploits - 15 Replies
Some hacks may require a whole new .NET framework update. Click here for the latest .NET framework. Download Free Microsoft .NET Framework, Microsoft .NET Framework 4 Download The Latest DirectX may be also recommended or required in-order to make the hack you downloaded fully functional: Click here for the latest DirectX download. Download DirectX 9.0c (full package) - the latest version of Direct X



All times are GMT +1. The time now is 13:10.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.