🔧Installation

Event Protection works by integrating directly into your resources, providing an extra layer of protection for your server. Since the recent updates to FiveM’s artifacts (beyond version 12078), automatic installation has been disabled. But no worries! We’ll guide you through the manual installation process, and if you’re comfortable, we’ll even provide a Python script to make it easier! 😄

🛠️ Manual Installation

To protect your resources from event exploitation, you need to add the following lines to every resource you want to protect. This must be done in the fxmanifest.lua or _resource.lua file — make sure it’s added at the top of the file. If it’s not at the top, the resource will not be protected by Event Protection.

Here’s what you need to add:

-- PrettyPacketAC Event Protection --
server_script '@PrettyPacketAC/modules/eventprotection/server.lua'
client_script '@PrettyPacketAC/modules/eventprotection/client.lua'
-- PrettyPacketAC Event Protection --

📝 Important:

  • Add these lines to the top of your fxmanifest.lua or _resource.lua.

  • We recommend installing Event Protection for every single resource in your server. This ensures all events are properly protected. 🌟

⚙️ Optional: Automatic Installation via Python Script

If you’re comfortable with scripts, we also provide a Python script that will install the protection automatically across all your resources. This makes the process quick and easy — no manual editing needed!

Let us know if you want to use the script, and we’ll be happy to share it with you. 🐍

Once you’ve completed the installation, you're all set! Your resources are now protected from malicious event triggers. 🎉

Last updated