Tips for the best configuration
Alongside having a good configuration, you can also do some things to help Electron protect your server better.
1. Disable onesync_population
If your server doesn’t use GTA NPCs, it’s better to disable onesync_population instead of having a NO NPC script. This is because onesync_population allows us to apply some extra protection for every entity that gets created.
You can disable onesync_population by adding the following to your server.cfg:
set onesync_population false
After adding this, you can also remove the NO NPC script from your server. Altering this will not only increase protection, but also your server’s performance.
2. Use open source scripts instead of escrowed scripts whenever possible
Escrowed scripts are scripts locked by keymaster. This means that you can’t see the source code of the script or modify it. Altough this system is quite good for prevent scripts from being dumped, it may cause issues when you use it in combination with resourceProtection. This means you will probably have to whitelist these scripts in your resourceProtection config.
It also causes detections that rely on resourceProtection to be less effective. Such as the antiIllegalEntity
and antiIllegalWeapon
detections.
3. Use the latest FiveM artifacts
The latest FiveM artifacts are the best artifacts to use. They often include bug fixes or fixes for certain expxloits.