Difference between revisions of "Lua:activateProtection"

From Cheat Engine
Jump to navigation Jump to search
m
m (Added related function template.)
 
(One intermediate revision by the same user not shown)
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===
+
{{LuaSeeAlso}}
* 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}}
+
{{Protection}}

Latest revision as of 20:50, 26 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[edit]

This function has no parameters.

Returns[edit]

This function does not return a value.

Examples[edit]

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

Process Protection

Function Encoding