Difference between revisions of "Lua:activateProtection"

From Cheat Engine
Jump to navigation Jump to search
m
m (Syntax Highlighting.)
Line 13: Line 13:
  
 
===Examples===
 
===Examples===
<pre>
+
<syntaxhighlight lang="lua" line>
 
activateProtection()
 
activateProtection()
</pre>
+
</syntaxhighlight>
  
<pre>
+
<syntaxhighlight lang="lua" line>
 
activateProtection()
 
activateProtection()
  
 
print("Basic Cheat Engine process protection has been enabled")
 
print("Basic Cheat Engine process protection has been enabled")
</pre>
+
</syntaxhighlight>
 
 
===Notes===
 
* This function affects the Cheat Engine process itself.
 
* It is only intended to block basic memory scanners.
 
* It should not be treated as strong protection.
 
* In most cases, this function is not necessary.
 
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}

Revision as of 16:25, 25 June 2026

<> Lua API Reference

function activateProtection() : void

Enables basic protection for the Cheat Engine process.

This prevents basic memory scanners from opening the Cheat Engine process. This protection is limited and is generally not very useful against more advanced tools.

Function Parameters

This function has no parameters.

Returns

This function does not return a value.

Examples

1 activateProtection()
1 activateProtection()
2 
3 print("Basic Cheat Engine process protection has been enabled")

Main Pages

Core Lua documentation entry points

Lua
Script Engine