Difference between revisions of "Lua:errorOnLookupFailure"

From Cheat Engine
Jump to navigation Jump to search
(Related Functions)
m (Added related function template.)
Line 19: Line 19:
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
  
=== Related Functions ===
+
{{Address}}
* [[Lua:getAddress|getAddress]]
 
* [[Lua:inModule|inModule]]
 

Revision as of 22:52, 26 June 2026

function errorOnLookupFailure(state)

If set to true (default) address lookups in string form will raise an error if it can not be looked up. This includes symbol names that are not defined and pointers that are bad. If set to false it will return 0 in those cases (Useful for pointers that don't work 100% of the time)

6.4+:Returns the original state

Function Parameters

Parameter Type Description
state Boolean Whether to raise errors on address lookup failures

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Symbol Related Lua Functions

Symbol lookup, address resolution, module checks, and lookup callbacks