PDF download Download Article
A comprehensive guide to using Cheat Engine to hack games
PDF download Download Article

This wikiHow teaches you how to use Cheat Engine to exploit some computer games. Cheat Engine is a memory scanning tool. It allows you to access data stored in your computer's memory and make changes to that data. This allows you to change information in a game, such as health, ammo, score, lives, and the number of things you have in your inventory.

How to Install Cheat Engine

  • You can download Cheat Engine for Windows or macOS from https://cheatengine.org/downloads.php.
  • You can use Cheat Engine to change the number of items in your inventory by modifying their aspect numbers.
  • Not all games work with Cheat Engine, but you'll have the best luck with single-player Steam games.
Part 1
Part 1 of 8:

Installing Cheat Engine

PDF download Download Article
  1. Go to https://cheatengine.org/downloads.php in your computer's web browser.
  2. It's a large link in the middle of the page.
    • This button will also have the current version of Cheat Engine listed on it (e.g., Download Cheat Engine 7.5).
    • If you're attempting to use Cheat Engine on a Mac, click the Download Cheat Engine 7.4 For Mac link instead.
    Advertisement
  3. Doing so will vary depending on your computer's operating system:
    • Windows — Double-click the Cheat Engine setup file, click Yes when prompted, click Next, check the "I agree" box and click Next, click Next three more times, uncheck the "I agree to install McAfee WebAdvisor" box and click Next, and click Install. Once setup completes, click Next if prompted, then click Finish.
    • Mac — Double-click the Cheat Engine DMG file, verify the installation if prompted, click and drag the Cheat Engine logo onto the "Applications" folder, and follow any on-screen instructions.
  4. Advertisement
Part 2
Part 2 of 8:

Opening A Game Process in Cheat Engine

PDF download Download Article
  1. Open the game that you want to use with Cheat Engine.[1]
    • Remember, this cannot be an online multiplayer or server-based game.
  2. In the Cheat Engine window, click the computer-shaped icon in the top-left corner. This will open a pop-up window with your computer's current programs in it.[2]
  3. Scroll through the list of processes until you find your game, then click the game's name. If you're attempting to use Cheat Engine for a browser game, you'll select your browser's name instead.[3]
    • If your game doesn't appear in the "Processes" list, you cannot edit it in Cheat Engine.
    • You may first have to click the Processes tab at the top of the window.
  4. It's at the bottom of the window. This will open the game in Cheat Engine.
  5. Advertisement
Part 3
Part 3 of 8:

FInding and Changing In-Game Values

PDF download Download Article
  1. In order for you to be able to change a game aspect, the aspect must have a number attached to it (e.g., amount of ammo, health, or items).
    • The number must be on-screen. For example, if you want to change the number of a certain item in your inventory, you would first have to open your inventory to the page on which the item's number is available.
  2. You'll need to pull up the Cheat Engine window while the game is minimized.
    • Don't pause the game when you do this.
  3. It's at the top of Cheat Engine next to the panel on the left. Any time you want to scan for a new value, you need to click New Scan.[4]
  4. There are five scan types you can do when you start a new scan. The two main ones you'll be using are "Exact Value" and "Unknown initial value". Use the drop-down menu next to "Scan Type" to select the type of scan you want to do. The scan types are as follows:
    • Exact value: Use this scan type if you know the exact number you want to change. For example, if you know the exact number of lives, or ammo you have, you can select this option.
    • Unknown initial value: In video games, sometimes a value isn't represented with a number. For example, your health may be represented by a health meter instead of a number. In which case, you don't have an exact number for how much health you have. There is a number that represents your health, you just don't see it on-screen. In this case, you can select Unknown initial value.
    • Bigger than...:' Select this option if you don't know the exact number you're look for, but you know the smallest possible value.
    • Smaller than...: Select this option if you don't know the exact value, but you know the largest possible value.
    • Value between...: This option allows you to enter a range of values to look for.
  5. The data type represents how a value is stored in the memory. It can be hard to know what data type to select, so this can take a little guesswork. Use the drop-down menu next to "Data type" to select a data type. If you can't find the value you are looking for using one data type, click New Scan and try again using a different data type. Some of the more common data types you will be using are as follows:
    • Bytes: 2 Bytes and 4 Bytes are the data types you'll be using most often. Most Windows applications use 4 Bytes, so start with that. You can also find these values using 2 Bytes. 1 Bytes and 8 Bytes can work as well, but you may run into problems.
    • Float: Floating point data types are values that have a decimal point in the value (though you may not see the decimal point on-screen in the game). Some times games store values as floating points to prevent simple memory scans. If you're not able to find the value you are looking for by scanning bytes, try scanning for floating points.
    • Double: Doubles are similar to floating points, but they can contain twice the amount of digits. If you are unable to find a value by scanning for bytes or floats, try scanning for it as a double.
    • All: This option scans all values of all data types. This is a good option if you don't know what you are searching for, but it will also return more search results that you will need to narrow down.
  6. For example, if you have 20 bullets left in your ammo, you would type 20 into the "Value" text box. This will scan for all values that have the number "20" in it. This will likely produce a long list of values in the list of addresses, you'll need need to narrow it down a bit.
  7. How you do this will depend on the game itself; for example, if you're trying to give yourself more health, you might purposefully damage your own health in order to lower the number. If you want more ammo, you might fire a couple of shots to lower your ammo count.
  8. Minimize the game again and click back over to Cheat Engine. Type the new number into the "Value" section, then click Next Scan. This will scan all the values in your first scan and narrow down the addresses to the ones that changed to the value you entered in the "Value" bar.[5]
    • Unknown initial value: If you selected "Unknown initial value" for your first scan, select Increased value or Decreased value under "Scan type" depending on if the value (or meter) increased or decreased. This will scan for all values that increased or decreased instead of scanning for an exact number.
  9. You'll keep changing the number and then searching for the updated number until you have no more than 4 values listed on the left side of Cheat Engine.
    • You should eventually see the previous number you searched for listed in the "Previous" column of each value's number, while the current value of the item will be in the "Value" column.
  10. You can either double-click a value to add it to the address list at the bottom, or you can click an address to select it and click the red, diagonal arrow in the bottom-right corner of the list of values. Doing so will place the values in the list of addresses at the bottom of the window.[6]
    • To select multiple addresses, you can hold "Shift" and click the top address and the bottom address.
  11. Use the following steps to change the value number:
    • Double-click the number below "Value" in the list at the bottom of Cheat Engine.
    • Enter a new number in the "Value" field.
    • Click Ok.
  12. When you re-open the game, the value you edited should reflect the number you just entered. The next part teaches you how to stop a value from changing by replacing it with non-operational code.
    • You may need to change the value one more time before it will update.
  13. Advertisement
Part 4
Part 4 of 8:

Replacing Code to Stop a Value From Changing

PDF download Download Article
  1. Scan for a value you want to stop. This part teaches you how to use the Code Finder to find what writes to the address you want to change and then replace it with non-operational code. This will prevent the value from changing in-game. Use the steps in the previous part to find a value you want to change. Add it to the list at the bottom of the screen.
  2. This opens the Cheat Engine Debugger. This displays instructions that write to the address you are accessing.
  3. This confirms that you want to attach the debugger to the Cheat Engine process. This opens the Code debugger. The list will be blank when the window first opens.
  4. Once again, return to your game and do something to change the value you want to stop. This will cause the code instruction that accesses the address you selected to appear in the debugger window.
  5. There may be more than one address. If that is the case, select the one that doesn't write to the same base address. Look for the instruction that has a different value between the "[' and "]" brackets than the rest.
  6. This replaces the code with non-operational (NOP) code.
    • If there is more than one item in the list, go ahead and select all of them.
  7. This puts the non-operational code into effect. This will prevent the value from changing in the game.[7]
    • To restore the original code, select the item in the list and clck Show disassembler. Right-click where it says "NOP" and click Restore with original code. If you don't see this option, click Replace with code that does nothing, click Yes. Then right-click NOP again and select Restore with orignal code.
  8. Advertisement
Part 5
Part 5 of 8:

Using Pointers to Find What Writes a Value

PDF download Download Article
  1. Scan for a value you want to change. Sometimes values can change address either when you restart the game, or in the middle of the game. You can use pointers to find what writes to an address. Once you find the base level static address that doesn't change, you can change that value.
  2. This opens the debugger window.
    • If there is multiple addresses, open a debugger window for as many addresses as Cheat Engine will allow.
  3. Once again, return to your game and do something to change the value you want to change (i.e. fire your weapon, get hit). This will cause the instruction that writes to that address to appear in the debugger window.
    • If nothing changes in the debugger window, it is not the correct address. Try a different one.
  4. It's in the debugger window. There may be more than one address. If that is the case, look for the instruction that has a different set of characters between the "[' and "]" brackets than the rest. If there isn't a single address that has different characters, check to see if the pointer is the same for all of them.
    • If the characters have a + and a number at the end (i.e. [ESI+14]). That is an offset number. Write it down. You'll need it later.
  5. This displays instructions that happen when the value changes in the Extra Info screen. This also lists the pointer that writes to the address.
    • You can also find the address by checking the characters in the bracket, and then checking what number comes after those characters listed at the bottom. For example, if the address has "[rdx]" next to it, look for RDX=xxxxxxxx at the bottom.
  6. The address of the pointer is listed in the text that says "The value of the pointer needed to find this address is probably xxxxxxxxx". Use the following steps to search for the address at the end of this sentence.
    • Click New Scan.
    • Click the checkbox that says "Hex" next to the "Value" field.
    • Enter the pointer address in the Value field and click First scan.
  7. This adds the address to the list at the bottom of Cheat Engine.
    • If the address is listed in green in the scan results. This means it is a static address and probably the pointer you are looking for. In some cases, the pointer you find may also be a pointer. This is called a multilevel pointer. In this case, you'll need to repeat these steps for each pointer you find in order to find out what the root static pointer address is.
  8. This opens the "Change address" dialogue box.
  9. To copy the address, simply highlight the entire text in the field at the top of the "Change address" box. Right-click it and click Copy. Then click Cancel to close the field.[8]
  10. It's the button on the left above the address list at the bottom of Cheat Engine. This opens a box that looks similar to the "Change address" box, except this one allows you to add an address.
  11. This expands the box and adds a new text field where you can enter a pointer.
  12. This adds a new address for the pointer that controls the value that you want to change. The address for the pointer you just created will read something like "P-->xxxxxxxx". This indicates that this is a pointer pointing to a specific address.
    • If there is an offset number, enter it in the space above the field where you paste the address.
    • If there is more than one pointer, click Add offset. This will add more offset number boxes above the area where you paste the address. Enter the correct offset number in each box.
  13. It's the box below "Active" in the list address list at the bottom of the screen. This activates pointer.
  14. The value number for the pointer address you just created should be the same as the address of the value you searched for. If the pointer writes to a different location, the original address you scanned for will no longer be valid. However, you can still change the value of the pointer address you just created. That will work no matter where it writes the value location to. Click the number below "value" for the address you just added. Enter a new numeric value and click Ok.[9]
  15. Advertisement
Part 6
Part 6 of 8:

Using Code Injection to Change Code

PDF download Download Article
  1. Scan for a value you want to stop. This part teaches you how to use Code Injections to change how the code writes a value. For example, if you lose health every time you get hit, you can change the code so that it increases your health when you get hit.
  2. This opens the Cheat Engine Debugger.[10]
  3. This confirms that you want to attach the debugger to the Cheat Engine process. This opens the Code debugger. The list will be blank when the window first opens.
  4. Once again, return to your game and do something to change the value you want to stop. This will cause the code that accesses the address you selected to appear in the debugger window.
  5. Once again, return to your game and do something to change the value you want to stop. This will cause the instruction that writes to that address to appear in the debugger window.
  6. There may be more than one address. If that is the case, look for an instruction that has the word "sub" in the instruction to subtract from the value, or the word "add" or "inc" to increase the value.
  7. This opens the code in the disassembler.[11]
  8. It is usually the first instruction at the top of the code. It will have wlll most likely have the word "Sub" or "Add" at the start of the code to subtract from the value or add to it.
  9. This opens the auto assembler.[12]
  10. This displays a pop-up window that confirms the address you want to inject code into.[13]
  11. Ensure the address in the field is the same address you selected in the Memory Viewer disassembler window. Then click Ok. This opens a new template.
  12. Scroll down to where it says "Code". The line below it is the code that changes the value. If the line starts with "sub", change "sub" to "add". If the line starts with "add", change it to "sub". You can also change the value at the end of the line to change how much you want it to change the value by.
  13. The "Execute" button is at the bottom of the Code Injection window. You will be asked if you are sure you want to inject the code. Click Yes to confirm. Then you can click Yes or No to open the new code in the disassembler. If the code injection was successful, values in your game will do the opposite of what they are supposed to do. You can gain ammo by firing your weapon instead of losing ammo. You can gain health when you get hit instead of losing health.
  14. Advertisement
Part 7
Part 7 of 8:

Distinguishing Between Objects With Shared Code

PDF download Download Article
  1. Scan for a value you want to stop. In some games, multiple objects share the same code. Injecting code into one object will affect all the others too. So you might freeze your own health bar, only to realize that the health of all enemies is also frozen. In this case, you need to find out how to distinguish between different objects and inject a script that only affects the object you want.
    • In order to inject scripts for different objects, you need to know some assembly code. However, it's not too hard to create a basic script.
  2. Once you've determined the address of the values you want to change or stop, find out what writes to those addresses, open up the debugger and find out what writes to that address.
  3. It's the instruction that is highlighted when you open the debugger. This displays the instructions in the code disassembler.
  4. This opens a window that displays a list of all the addresses the instruction accesses when it writes to a new address.[14]
  5. This will show a list of all addresses that the instruction accesses. For example, if you are trying to stop your health bar from changing, you can return to your game and get hit. This will display the instruction that accesses that address in the list of accessed addresses window. If you hit an enemy that also shares that instruction, it will also show in the list of accessed addresses window.
  6. Once you have an address for all objects that share the same address in the list of accessed addresses, simply click and drag to highlight all of them.
    • Alternatively, you can right-click each individual address and click Show register states.[15]
  7. Use the following steps to disect the data structure for the list of addresses:[16]
    • Right-click the selected addresses.
    • Click Open disect data with selected addresses.
    • Click Ok.
    • Enter a name for the data structure and click Ok.
    • Click Yes.
    • Enter a starting size of the struct or leave it as is, and click Ok.
  8. Whether you are looking at the data structure or the register for each object, you need to find a value that is the same for all allies, but different for the enemies. For example, if Team 1 has two player characters, and Team 2 has two computer-controlled characters, the Team 1 characters may be represented with a value of 1, and Team 2 might have a value of 2.
    • If can't find a value that is the same for allies, but different for enemies, you can make one. Simply right-click one of the values (such as a pointer), and click Add Element. Select "4 Bytes" as the data type and give it an offset number value that is not taken. Offset numbers are listed to the left in the data dissection structure table.
  9. Whether you are looking at the register view or data dissection view, the register value is on the left. In the register view, it will be the actual register the instruction writes to (i.e. RSI, RDX, EDX, etc). If you are looking at a data structure, the register will be an offset number or letter listed to the left.
  10. Return to the Memory Viewer window and open a new code injection template for the instruction that writes to the different addresses. Use the following steps to do so:
    • Click the instruction in the Memory Viewer window.
    • Click Tools in the menu bar at the top.
    • Click Auto Assembler.
    • Click Template in the menu bar at the top.
    • Click Code Injection.
  11. Labels are listed at the top of the code injection template. Add a new label for the object you want to affect below the existing labels. To add a label, simply type label followed by the name of the label in parenthesis. For example, "label (player)" or "label (enemy)".
  12. To create a new section for the label, type the name of the label followed by a colon (:) anywhere before or after the original code.
  13. This requires a bit of knowledge of assembly code. You'll need to add a line of code that changes the value for the object you want to change in the way you want to change it. Then you'll need to add a line that jumps to the exit, original code, return code.
  14. The line that says "newmem:" in the code injection template indicates that the instruction is calling a new memory address. Normally, it will go right into the original code that has a label of (code:) or (originalcode:). Use the "cmp" command to create a line of code that compares the value of the different objects at the registry or registry plus offset number. For example, if RDX with an offset of 14 determines the player team from the computer team, and the player team has a value of 1, you would type cmp [rbx+14],1 to check if an object is a player or not.
  15. Use the "je" command to jump to the section for your comparison command. For example, if your label is called "player", add the line je player to jump to the player section if the value comparison corresponds to the player.
  16. After you create a line of code that jumps to the section for the object you want to change, you need to add a line of code that jumps to the original code if value doesn't corrispond to the player or ally. Use the "jmp" command to create a line of code that jumps to the orignal code after the line of code that jumps to the original code (or another set of code you create that does something different).
    • One way to keep things simple is not to add any new labels. Just create a comparison code at the end of "newmen:" to differenciate between allies and foes. Then add a line of code that jumps to the exit if it's an ally. If it's an enemy, have it jump to the original code. This will make it so that if the player or an ally is attacked (or fires weapons uses consumables, etc), nothing will change, but if an enemy is attacked, the code will execute as normal.
  17. This executes the code you entered. If all goes well, you will have injected new code that differentiates between allies and foes. The following is an example of a simple script you can use to differentiate between allies and foes:
     alloc(newmem,2048,"Tutorial-x86_64.exe"+2EB6D) 
    label(returnhere)
    label(originalcode)
    label(exit)
    label(player) //New label for the player.
    
    newmem: //This calls a new memory address. 
    cmp [rbx+14],1 //This differenciates between ally team members and enemy team
    je player //This jumps to the player section if object is on the player's team.
    jmp originalcode //This jumps to the original code if object is an enemy team.
    
    player: //This creates a new section for the Player's team
    jmp exit //This jumps to the exit and does nothing for the player's team.
    
    originalcode: //This is the original code section
    movss [rbx+08],xmm0 //This executes original insturctions (for the enemy team)
    
    exit: //This section ends this script.
    jmp returnhere
    
    "Tutorial-x86_64.exe"+2EB6D:
    jmp newmem
    returnhere:
    
  18. Advertisement
Part 8
Part 8 of 8:

Understanding Cheat Engine

PDF download Download Article
  1. Cheat Engine can access pieces of data stored in your computer's random access memory (RAM). When you run a piece of software, such as a game, information is transferred from a static storage location such a a hard drive, to your RAM. From there, the information can be read and written. Cheat Engine allows you to scan information stored in your RAM and change the information.
  2. Cheat Engine deals with a lot of high-level computer code. To make things easier to understand, it helps to understand some of the terminology involved. The following are some terms used in Cheat Engine:
    • Value: A value is anything in a computer program that has a numeric value attached to it. It games, it can be your health percentage, the number of ammo you have, or the quantity of an object you have. Cheat Engine allows you to scan for variables and make changes to them.
    • Address: An address is the location the information is stored within the RAM. Sometimes, the location of a value can change.
    • Data Type: A data type is how a value is stored. I can be in bytes (i.e. 2 Bytes, 4 Bytes, or 8 Bytes), it can also be a floating point, or a double.
    • Pointer: A pointer is an address that contains a value that was written to by another address. These addresses can change every time you load a game, or sometime in the middle of a game.
  3. Any game which has some form of cheat protection or online multiplayer functionality won't work with Cheat Engine, and attempting to use Cheat Engine will typically result in your account or profile being banned from online play.
    • If you are somehow able to use Cheat Engine to obtain resources which are usually purchased with real money, you may be prosecuted for theft.
    • Cheat Engine is a high-profile piece of software, so most games have some form of protection against it.
  4. Older singleplayer games and some Steam singleplayer games should work with Cheat Engine, though the games in question must have some on-screen value that you can view and change.
    • Many online flash games which don't have a community link (e.g., no multiplayer and no high score) are also compatible with Cheat Engine.
  5. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Is there a speedhack function on Cheat Engine?
    Community Answer
    Community Answer
    Yes, on the right side there's a tickbox that reads 'Enable Speedhack'. It allows you to easily speed up or slow down any singleplayer game.
  • Question
    How do I do it with money on Gta 5 single player?
    Community Answer
    Community Answer
    Try changing 4 bytes to string or double.
  • Question
    I did this in Clash of Kings, and it changes the value in the game, but when I go to buy something, it goes back to what it was before it changed. What do I do?
    Community Answer
    Community Answer
    It's a multiplayer game, therefore it won't let you change those values with cheat engine.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

  • Start with the interactive tutorial that comes with Cheat Engine. Try using these skills to get through all 9 steps.
  • Cheat Engine is useful for changing minor aspects of a game, though attempting to alter larger features may cause the game to break.
  • To use Cheat Engine effectively, it's best if you have some knowledge of assembly code.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

Warnings

  • If you use Cheat Engine on a VAC or other anti-cheat protected server, you will get banned.
  • On Roblox you can't hack with the usual Cheat Engine, if you do you will get kicked off the game you're trying to hack.
Advertisement

You Might Also Like

Advertisement

About This Article

Travis Boylls
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Travis Boylls. Travis Boylls is a Technology Writer and Editor for wikiHow. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College. This article has been viewed 1,668,174 times.
How helpful is this?
Co-authors: 85
Updated: April 24, 2024
Views: 1,668,174
Categories: Hacks
Article SummaryX

1. Open Cheat Engine.
2. Start the game.
3. Determine the aspect number you want to change.
4. Minimize the game.
5. Click Processes and select the game's process.
6. Find the aspect number and click First Scan.
7. Repeat until you have 4 or fewer values.
8. Add all remaining values to the address list.
9. Enter the value you want to use and click OK.

Did this summary help you?

Thanks to all authors for creating a page that has been read 1,668,174 times.

Reader Success Stories

  • Braeden Cohen

    Braeden Cohen

    Apr 13, 2016

    "I learned how to use a cheat engine, and now I can learn how to use it like an expert. Thanks to the authors!"
Share your story

Is this article up to date?

Advertisement