Difference between revisions of "Lua:activateProtection"

From Cheat Engine
Jump to navigation Jump to search
m
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
'''function''' activateProtection()
+
{{CodeBox|'''function''' activateProtection() ''':''' void}}
  
Prevents basic memory scanners from opening the cheat engine process.
+
Enables basic protection for the Cheat Engine process.
  
=== Function Parameters ===
+
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.
<none>
 
  
 +
===Function Parameters===
 +
This function has no parameters.
  
== See also ==
+
===Returns===
* [[Lua]]
+
This function does not return a value.
* [[Help_File:Script engine|Script engine]]
+
 
 +
===Examples===
 +
<pre>
 +
activateProtection()
 +
</pre>
 +
 
 +
<pre>
 +
activateProtection()
 +
 
 +
print("Basic Cheat Engine process protection has been enabled")
 +
</pre>
 +
 
 +
===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}}

Revision as of 21:08, 24 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

activateProtection()
activateProtection()

print("Basic Cheat Engine process protection has been enabled")

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.

Main Pages

Core Lua documentation entry points

Lua
Script Engine