Difference between revisions of "Lua:getAddressList"

From Cheat Engine
Jump to navigation Jump to search
m
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
'''getAddressList()'''  
+
{{CodeBox|'''function''' getAddressList() ''':''' Addresslist}}
  
Returns the cheat table addresslist object.
+
Returns the main Cheat Engine [[Lua:Class:Addresslist|Addresslist]] object.
  
Example:
+
This is the same object that is available through the global [[Lua:AddressList|AddressList]] variable.
  
  addresslist=getAddressList()
+
===Function Parameters===
 +
This function has no parameters.
  
'''Return''' : [[Addresslist]] object
+
===Returns===
 +
Addresslist — The main Cheat Engine address list object.
  
 +
===Examples===
 +
 +
<syntaxhighlight lang="lua" line>
 +
local addressList = getAddressList()
 +
 +
print("Record count: " .. tostring(addressList.Count))
 +
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
 +
 +
{{Forms}}
 +
 +
{{CheatTable}}

Latest revision as of 19:05, 25 June 2026

<> Lua API Reference

function getAddressList() : Addresslist

Returns the main Cheat Engine Addresslist object.

This is the same object that is available through the global AddressList variable.

Function Parameters[edit]

This function has no parameters.

Returns[edit]

Addresslist — The main Cheat Engine address list object.

Examples[edit]

1 local addressList = getAddressList()
2 
3 print("Record count: " .. tostring(addressList.Count))

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Form Related Classes

Cheat Table Related Functions