Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[GTA 5] WriteProcessMemory C# Example Request

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Antrix
How do I cheat?
Reputation: 0

Joined: 24 Oct 2016
Posts: 2

PostPosted: Mon Oct 24, 2016 9:18 am    Post subject: [GTA 5] WriteProcessMemory C# Example Request Reply with quote

Hi all! Can somebody write or share a WriteProcessMemory example for GTA 5? I've tried one video tutorial, but it's won't work in my case (nothing happen). Link to code:

pastebin . com / 9gpyQF2Y

This is only a code from that tutorial. If anyone can help me with it, or share a working copy example - i can pay for it. I need only example, like a "Wanted Level Hack". I have some funds, not much, but...
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Mon Oct 24, 2016 9:41 am    Post subject: Reply with quote

What is the problem?

I had a c++ traner template but the site is gone. Any c++ template wll do fine though

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Antrix
How do I cheat?
Reputation: 0

Joined: 24 Oct 2016
Posts: 2

PostPosted: Mon Oct 24, 2016 9:42 am    Post subject: Reply with quote

I have a working copy of c++ trainer too. But i want to make it on C#. I mean, i want to see how it works on it.
I've found another tutor. There is a ready two classes:
CheatEngine.Win32
CheatEngine.Memory

Here is the link - matejtomcik . com/Download/?n=CheatEngineCSharpHelpers

Code:
Code:

namespace Trainer
{
    public partial class Form1 : Form
    {           
        public Form1()
        {
            InitializeComponent();           
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Process[] processes = Process.GetProcessesByName("GTA5");
            if (processes.Length > 0)
            {
                using (Utilities.Memory memory = new Utilities.Memory(processes[0]))
                {                   
                    IntPtr address = memory.GetAddress("GTA5.exe+02399160+5d8");
                    memory.ReadUInt32(address);
                    MessageBox.Show(address.ToString());
                }
            }
        }
    }
}


And when i tryin' to read it there is "An unhandled exception of type 'System.AccessViolationException' occurred. Attempted to read or write protected memory".
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Mon Oct 24, 2016 1:27 pm    Post subject: Reply with quote

Oh crap, i thought the title said c++.

My apologies

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites