Lua:activateProtection

From Cheat Engine
Revision as of 21:08, 24 June 2026 by Leunsel (talk | contribs)
Jump to navigation Jump to search

<> 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