A basic system that is prepared to detect FiveM Trigger executors and protect your servers!
If you need help or something you can open a issue.
Updated version: https://github.com/N0rmie/Fivem-Trigger-Protector-V2
- Add this on the top of the fxmanifest.lua/__resource.lua in resource that you want to protect: shared_scripts {'atrigger.lua'}
- Inside the resource folder put the file that can be found in this repo
- To protect a trigger:
- Original | Protected
- TriggerServerEvent("test") | secured_TriggerServerEvent("test")
- AddEventHandler("test") | secured_AddEventHandler("test")
- RegisterServerEvent("test") | secured_RegisterServerEvent("test")
*Example: Example
Distributed under the MIT License. See LICENSE
for more information.