Difference between revisions of "Lua:readQword"
Jump to navigation
Jump to search
m |
m (Syntax Highlighting.) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[Category:Lua]] | [[Category:Lua]] | ||
| − | '''function''' readQword(''Address'') ''':''' Integer | + | {{CodeBox|'''function''' readQword(''Address'') ''':''' Integer}} |
Reads a 64-bit integer (Qword) from the specified address in the currently opened (target) process. | Reads a 64-bit integer (Qword) from the specified address in the currently opened (target) process. | ||
| Line 19: | Line 19: | ||
===Examples=== | ===Examples=== | ||
| − | < | + | <syntaxhighlight lang="lua" line> |
-- Read a 64-bit integer from address 0x123456 | -- Read a 64-bit integer from address 0x123456 | ||
local value = readQword(0x123456) | local value = readQword(0x123456) | ||
| Line 27: | Line 27: | ||
local value2 = readQword("game.exe+1234") | local value2 = readQword("game.exe+1234") | ||
print("Value:", value2) | print("Value:", value2) | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
| − | |||
{{ReadWriteMemory}} | {{ReadWriteMemory}} | ||
Latest revision as of 15:34, 25 June 2026
Reads a 64-bit integer (Qword) from the specified address in the currently opened (target) process.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| Address | Integer or CEAddressString | The address in the target process to read from. |
Returns[edit]
Integer — The 64-bit integer value read from the specified address.
Examples[edit]
1 -- Read a 64-bit integer from address 0x123456
2 local value = readQword(0x123456)
3 print("Value:", value)
4
5 -- Read from a CEAddressString
6 local value2 = readQword("game.exe+1234")
7 print("Value:", value2)