Lua:writeBytesLocal
Jump to navigation
Jump to search
function writeBytesLocal(Address, Byte1, [Byte2, ...])
function writeBytesLocal(Address, Table, [Count])
Writes bytes to the specified address in Cheat Engine's own process memory (not the target process). This is similar to writeBytes, but operates on Cheat Engine itself.
Function Parameters[edit]
writeBytesLocal(address, byte1, [byte2, ...])
Parameter | Type | Description |
---|---|---|
Address | CEAddressString or Integer | The address in Cheat Engine's memory to write to. |
Byte1, Byte2, ... | Integer | The bytes to write (as separate arguments). |
writeBytesLocal(address, table, [count])
Parameter | Type | Description |
---|---|---|
Address | CEAddressString or Integer | The address in Cheat Engine's memory to write to. |
Table | Table | A table containing the bytes to write. |
Count | Integer (optional) | The number of bytes to write from the table. |
Note: The value written will be in the Cheat Engine process instead of the targeted process.
Examples[edit]
-- Write 4 bytes to a local address writeBytesLocal(0x123456, 0x90, 0x90, 0x90, 0x90) -- Write bytes from a table local bytes = {0xDE, 0xAD, 0xBE, 0xEF} writeBytesLocal(0x654321, bytes) -- Write only the first 2 bytes from the table writeBytesLocal(0x654321, bytes, 2)
See also[edit]
Related Functions[edit]
- readBytes
- readSmallInteger
- readInteger
- readQword
- readPointer
- readFloat
- readDouble
- readString
- writeBytes
- writeSmallInteger
- writeInteger
- writeQword
- writeFloat
- writeDouble
- writeString
- readBytesLocal
- readIntegerLocal
- readQwordLocal
- readPointerLocal
- readFloatLocal
- readDoubleLocal
- readStringLocal
- writeBytesLocal
- writeIntegerLocal
- writeQwordLocal
- writeFloatLocal
- writeDoubleLocal
- writeStringLocal
- wordToByteTable
- dwordToByteTable
- qwordToByteTable
- floatToByteTable
- doubleToByteTable
- stringToByteTable
- wideStringToByteTable
- byteTableToWord
- byteTableToDword
- byteTableToQword
- byteTableToFloat
- byteTableToDouble
- byteTableToString
- byteTableToWideString