🚨 Bypass System

PrettyPacketAC’s Bypass System allows you to temporarily whitelist certain features, preventing the anti-cheat system from triggering bans or kicks. Perfect for situations like using drones, thermal vision, or other features that could falsely trigger detections. ✨

💡 How to Use the Exports

1. Enable a Bypass for a Player

You can enable a bypass for a player for a specific detection method (like invisibility or speedhack) for a set duration.

Example:

Let’s say a player is using a drone that utilizes invisibility (or thermal vision). You don’t want them flagged by the anti-cheat, so you give them a 5-minute bypass for invisibility.

exports['PrettyPacketAC']:EnableBypass(playerId, 'invisibility', 300) -- 5 minutes

Once the 5 minutes are up, the bypass will automatically expire, and normal detection will resume.

2. Disable the Bypass Early

If the player is done with the feature (like the drone), you can disable the bypass before it expires.

Example:

Let’s say the player has finished using the drone and you want to remove the invisibility bypass immediately.

exports['PrettyPacketAC']:DisableBypass(playerId, 'invisibility')

This will remove the bypass instantly, and the player will be subject to normal detections again.

3. Check If a Player Has a Bypass

If you need to check whether a player currently has an active bypass for a certain detection method, you can use this check.

Example:

Before triggering an action or kicking a player, you might want to check if they currently have a godmode bypass active:

local hasBypass = exports['PrettyPacketAC']:HasBypass(playerId, 'godmode')
if hasBypass then
    print("This player is bypassed for godmode.")
end

This will return true if the player has an active bypass, otherwise false.

🔨 Practical Example: Drone Use Case

Let’s say you have a drone script where players use thermal vision or invisibility. You don’t want these features to trigger the anti-cheat detections. Here’s how you’d use the bypass system:

  • When the player starts using the drone:

exports['PrettyPacketAC']:EnableBypass(playerId, 'invisibility', 300) -- 5 minutes bypass for invisibility
  • When the player finishes using the drone:

exports['PrettyPacketAC']:DisableBypass(playerId, 'invisibility')

This ensures the player can use the drone freely without triggering bans, but once they’re done, the bypass is turned off.

💬 Need Help?

If you have questions or need help with the Bypass System or setting it up, we’re just a message away!

🌸 Join our Discord

Last updated