Difference between revisions of "Lua:loadTable"

From Cheat Engine
Jump to navigation Jump to search
(Created page with 'Category:Lua '''function''' loadTable(''fileName'', ''merge'' OPTIONAL) '''function''' loadTable(''memoryStream'', ''merge'' OPTIONAL, ''ignoreLuaScriptDialog'') Loads a ".…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
'''function''' loadTable(''fileName'', ''merge'' OPTIONAL)
+
'''function''' loadTable(''fileName'', ''merge'' OPTIONAL)<br>
 
 
 
'''function''' loadTable(''memoryStream'', ''merge'' OPTIONAL, ''ignoreLuaScriptDialog'')
 
'''function''' loadTable(''memoryStream'', ''merge'' OPTIONAL, ''ignoreLuaScriptDialog'')
  
Line 42: Line 41:
 
<pre>
 
<pre>
 
loadTable('SomeGame.CT')
 
loadTable('SomeGame.CT')
 +
</pre>
 +
<pre>
 +
loadTable('SomeGame.CETRAINER')
 
</pre>
 
</pre>
 
<pre>
 
<pre>

Latest revision as of 03:19, 18 April 2018

function loadTable(fileName, merge OPTIONAL)
function loadTable(memoryStream, merge OPTIONAL, ignoreLuaScriptDialog)

Loads a ".CT" or ".CETRAINER". If merge is provided and set to true it will not clear the old table.

Function Parameters[edit]

Parameter Type Description
fileName String The name of the file to be added to the cheat table
merge Boolean If set to true it will merge to current table with the loaded table and not clear the old table.
Parameter Type Description
memoryStream MemoryStream The memory stream to load as a cheat table
merge Boolean If set to true it will merge to current table with the loaded table and not clear the old table.
ignoreLuaScriptDialog Boolean

Examples[edit]

loadTable('SomeGame.CT')
loadTable('SomeGame.CETRAINER')
local stream = createMemoryStream()
stream.loadFromFile('SomeGame.CT')
loadTable(stream)


See also[edit]

Related Functions[edit]

Related Classes[edit]