Resource name
Name the folder whatever you like — nothing saying "blackshield" is visible to players.
The resource can have any name. Events, the guard line in your other resources and the web panel all use the folder name, and fxmanifest.lua doesn't say it's an anticheat. A mod menu looking for "blackshield" in the resource list won't find it.
#Renaming
With the server stopped:
- Rename the folder, for example from
blackshieldtocore. - In
server.cfg, replaceensure blackshieldwithensure core. - Run the guard installer again from inside the renamed folder (
core/tools/instalar-guard.baton Windows,sh core/tools/instalar-guard.shon Linux) and choose 1) Install.
The installer reads the name of the folder it is in and swaps the old line for the new one in every resource:
shared_script '@core/lib/shared.lua' -- core libStart the server and check with acguard status that no resource was left without the guard.
Warning
If you rename the folder and don't run the installer, your other resources point to a folder that no longer exists: they show errors in the console and stay unprotected.
#What stays the same
- Permissions: the ACEs are still
blackshield,blackshield.view,blackshield.ban, … (players never see them). - Database: the
bs_*tables, bans and configuration stay as they were. - License: the same key, in the same
server_config.lua.
#What changes
- Web panel: moves to
http://server-IP:30120/<name>/. - Exports: call them by the new name:
exports['core']:AllowTeleport(src, 5000)Or, to keep the name out of your scripts, use the sv_libres convar (the anticheat sets it to its own name on startup):
local ac = GetConvar('sv_libres', 'blackshield')
exports[ac]:AllowTeleport(src, 5000)Tip
DRS scripts (Admin, Advanced Ambulance) already use sv_libres: they work with any name.
Something unclear? Open a ticket.