Difference between revisions of "Lua:getAddress"
Jump to navigation
Jump to search
m (Syntax Highlighting.) |
|||
| Line 25: | Line 25: | ||
===Examples=== | ===Examples=== | ||
| − | < | + | <syntaxhighlight lang="lua" line> |
local address = getAddress("KERNEL32.AddAtomA") | local address = getAddress("KERNEL32.AddAtomA") | ||
print(string.format("%X", address)) | print(string.format("%X", address)) | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
Revision as of 16:27, 25 June 2026
Returns the address of a symbol.
The symbol can be a registered symbol, a module name, or an exported symbol. Set local to true to query the symbol table of the Cheat Engine process instead of the currently opened target process.
Function Parameters
| Parameter | Type | Description |
|---|---|---|
| symbolname | String or CEAddressString | The symbol, module name, or exported symbol to resolve. |
| local | Boolean (optional) | If true, queries the symbol table of the Cheat Engine process. |
Returns
integer — The resolved address of the given symbol.
Examples
1 local address = getAddress("KERNEL32.AddAtomA")
2
3 print(string.format("%X", address))