📸 OCR Detection

In this section, we’ll dive into OCR (Optical Character Recognition) detection pretty fancy, huh? 💖 This feature helps us spot cheat menus and injectors by reading what's on the player's screen. We’ve got your back by monitoring the text that might pop up from mod menus! 🌟

🌸 What It Does:

  • OCR Detection lets PrettyPacketAC monitor on-screen text in real-time to catch mod menus and injectors.

  • It checks for a list of keywords, and if it finds anything suspicious, it triggers a warning (or other actions you’ve set). 🔍

💖 Included Dictionary:

We’ve already added a big dictionary of keywords that are commonly used in mod menus. If you want to add more words or remove some, feel free to customize it! You're the boss. 👑

🌼 Config:

Here’s the config to get you started. Just enable it and decide how often to check for OCR (but don’t go overboard, we recommend not checking too often to avoid stressing your players' performance! 😌).

PrettyPacketAC.OCR = {
    enabled = false, -- Set this to true to enable the feature
    action = "WARN", -- You can choose: WARN, KICK, BAN
    interval = 10000, -- How often to check (in milliseconds)
}

✨ Performance Note:

  • Warning: Checking OCR too often may affect player performance (max of 0.02ms in resmon). We recommend setting the interval to 10,000ms (10 seconds) or more to keep things smooth! 🌸

💅 How to Use:

  1. Enable OCR by setting enabled = true.

  2. Set your action—whether you want to warn, kick, or ban players caught with mod menus.

  3. Adjust the interval to decide how often you want the system to check for OCR. Too frequent? It might hurt performance. 😬

💖 Customization Tip:

You can always add or remove words from the dictionary, and even change the detection frequency. Go ahead and tweak things until it's perfect for your server. You're in control, and it's totally customizable! 💕✨

Last updated