Cheat Engine Wiki


13pages on
this wiki

Lua is a script. You can use it to do most commands you can also do with CE, but a lot quicker. You can also use it to make messages appear, to force a keypress, set the speedhack to a certain speed, or to close CE.

Important CommandsEdit

Important commands in lua are:

Command Function
AutoAssemble runs commands in the autoassembler
closeCE Closes CE
speedhack_setspeed Sets the speedhack to a certain speed
Readbytes/writebytes Reads/writes a numbers of bytes to a certain adress

Fun CommandsEdit

Lua also has a lot of commands that aren't too usefull, but have fun effects. A few of them are listed below

Command Function
showMessage Shows a message with the entered text
beep plays a beeping sound
supportCheatEngine Opens an advertising window
fuckCheatEngine Closes the advertising window

How to use the autoAssemble command:

The most used format is:

autoAssemble([[aobscan(labelyourcheat, array of bytes here) labelyourcheat: db array of bytes to change to)labelyourcheat:
db array of bytes to change to]])

When you find an assembly code that you want to nop out or change without having to search for it again, you must open up lua table and use the format above, write down a bunch of bytes from the assembly code with spaces in between starting at the opcode you want to change the more the better.

Question marks are wildcards, you may have to use them if the game uses DMA. In the autoassembler, change the opcode you're changing to whatever you want to change it to, write the new bytes at "db array of bytes" to change it. The next time you play the game, run the lua table. You may have to repeat the action you did to manually find the cheat, but just once this time. And you can add as many of these as you want, and build up a lua table for ur game.

Around Wikia's network

Random Wiki