Installation
Before you start
- FXServer with recent artifacts.
- OneSync enabled (
set onesync oninserver.cfg). Without it, the server-side protection does not work. - Your server's license key. Each server has its own.
Step by step
1. Copy the folder
Put the mengazo-shield folder inside resources/.
2. Paste the license
In config/config.lua:
Config.License = {
key = "MENGAZO-XXXX-XXXX-XXXX",
authToken = "",
}It is the only required field.
3. Start it after the framework
In server.cfg:
set onesync on
ensure qb-core
ensure mengazo-shieldUse your own framework in place of qb-core (es_extended, qbx_core, vrp and so on). The Shield detects vRP, vRPex, Creative, ESX, QBCore, Qbox and custom frameworks on its own.
4. Restart the server
Do not change the order of the files inside the Shield's fxmanifest.lua. The load order matters.
What happens on the first boot
Autocheck
On every start the Shield prints an INSTALLATION AUTOCHECK block in the console:
[OK]is fine.[~ ]is a warning. The Shield protects, but something needs adjusting.[!!]is a failure. Fix it before opening the server.
Companion in the resources
The Shield installs a small file (the companion) in every resource of the server that runs Lua. It is what lets the Shield tell that an action came from one of your scripts and not from a cheat.
In practice, three lines go at the top of each resource's fxmanifest.lua:
shared_script '@mengazo-shield/inject/shared.lua'
client_script '@mengazo-shield/inject/client.lua'
server_script '@mengazo-shield/inject/server.lua'
fx_version 'cerulean'
-- the rest of your manifest stays the sameNothing in your manifest is deleted. The companion takes effect on the next server restart.
- Map-only, stream-only or JavaScript resources do not get the companion.
- To leave a resource out, list it in
Config.AutoInject.exclude(see Configuration). - New resource after the installation: run
shield_install resource_namein the console, thenrefreshandrestart resource_name.
If the console says it could not write the manifests, check the write permission of the resources/ folder. On recent artifacts FXServer also asks for this line in server.cfg:
add_unsafe_child_process_permission mengazo-shieldProtection health
After the first boot, run in the console:
shield_readinessIt answers GO, CAUTION or NO-GO and lists what is missing: license, resources without the companion, server locks. Fix whatever shows up under CAUTION.
Server locks (server.cfg)
The Shield never changes convars on its own. The shield_platform_audit command shows the state of each one and the lines ready to paste. The essential ones:
sv_scriptHookAllowed false
sv_filterRequestControl 2
sv_requestParanoia 1
sv_enableNetworkedPhoneExplosions falseThese are worth it, but test first, because they can affect some scripts:
| Convar | What it does | Watch out |
|---|---|---|
sv_pureLevel 1 | Blocks modified game files | May block sound or graphics packs |
sv_enforceGameBuild <build> | Locks the game build | Use your server's build |
sv_enableNetworkedSounds false | Blocks networked sounds | May break radio or music |
sv_enableNetworkedScriptEntityStates false | Blocks networked entity state | Many frameworks use it |
onesync_distanceCullVehicles true | Does not send distant vehicles to the client | May break "go to someone's vehicle" |
Updates
The Shield downloads the new version on its own. It only takes effect on restart, and the console tells you what to do:
| Console message | What to do |
|---|---|
UPDATE READY | refresh and restart mengazo-shield. Nobody is kicked. If the message asks, restart the server |
NEW VERSION AVAILABLE ... Auto-update is off | shield_update, then refresh and restart mengazo-shield |
ACTION PENDING | The Shield is already updated. The other resources pick up the new companion on the next server restart |
The config/ folder is yours and is never replaced by an update. When a version brings an option your file does not have yet, the version's default applies and the boot log tells you which ones. To turn something new off, write the option with its value (for example enabled = false).
Moving to a new VPS
The license is tied to the server's IP and port. If you changed machines:
- Open Account on the website.
- On your server, reset the IP binding.
- Start the Shield on the new machine. The new address is registered on the first start.
