Configuration
Punishments, points, Dev Mode, joining, bans, convars, Discord and optional keys.
#Where to configure
Almost everything changes in the panel (/ac → Configuration) without restarting: every detection can be turned on or off and have its own punishment and limits. config.lua holds the defaults; server_config.lua holds what never goes to players (license, keys, webhooks).
Note
What you change in the panel is saved in the database and overrides config.lua. Reset (top of Configuration) goes back to the config.lua values.
#Punishments
Each detection has a punishment:
| Punishment | What it does |
|---|---|
| Ban | Ban (permanent by default) with screenshot and evidence clip, if you have screenshot-basic |
| Kick | Kicks. 3 kicks for the same detection within 24 h become a ban (kicksToBan) |
| Warn | Only warns staff (panel + Discord) |
| Points | Adds suspicion points (see below) |
| Log | Only logged |
The punished player sees a generic message; the reason stays in the panel (hideReason). The client never decides anything on its own — it only reports what it saw and the server confirms.
#Suspicion points
| Severity | Points |
|---|---|
| Low | 10 |
| Medium | 25 |
| High | 50 |
| Critical | 100 |
Points add up over a 15-minute window: at 25 staff are warned, at 100 the player is kicked, at 200 banned. A points ban lasts 7 days (they are heuristics: staff confirm and make it permanent). All of this changes in panel → Configuration → Settings → Points.
#Default punishments (recommended)
- Ban — only what no clean player or legitimate script can cause: anticheat stopped or spoofed, injected resources, altered functions, known menus, honeypots, giving weapons to others, forbidden explosions/vehicles/peds/weapons, attacks on several players.
- Kick — strong signals that a script on your server could imitate (health/armour above max, super jump, damage modifiers, attaching or disarming other players, forbidden ped…).
- Points — everything statistical (aimbot, silent aim, teleport, speed, noclip, invisible…).
- Warn — economy (money or items appearing from nowhere) and chat.
If one of your scripts gets caught by mistake, lower that detection's punishment or use the exceptions (AllowTeleport, AllowHeal, AllowRepair, SetStaffTool exports — see Exports).
#Dev Mode
To test BlackShield on your base (scripts, admin menus, teleports, garages…) before it starts punishing. With Dev Mode on nobody is kicked or banned: staff get a warning with what would have happened.
Three ways to turn it on (saved, no restart needed):
- Console:
acdev on/acdev off(no argument shows the state). - Panel:
/ac→ Configuration → Settings → General → Dev Mode. - config.lua:
Config.TestMode = true -- Dev Mode
Config.DevModeBlocks = true -- keep blocking attacksKeep blocking attacks (Config.DevModeBlocks, also in the panel):
| Value | What it does |
|---|---|
true (default) | Attacks are still blocked (impossible shots and explosions, spawned weapons, teleports undone…), only without punishment. Players stay protected. |
false | Observe only: nothing is punished or blocked. Useful to see whether a legitimate script gets caught. |
On start, the console says whether Dev Mode is on. Use it during the first week and whenever you change the server a lot; then acdev off. The panel's Statistics screen shows, per detection, how often it fired, on how many players and how often staff unbanned or marked a false positive — that's where you see what to tune.
Note
With the BlackShield Client, Dev Mode also softens the program: nobody is kicked, staff get the warning.
#Bans
Panel → Configuration → Settings → Bans (or Config.Bans):
| Option | Default | What it does |
|---|---|---|
| Automatic ban duration | 0 | Minutes; 0 = permanent |
| Store the IP | no | Also stores (and blocks) the IP |
| Link accounts | yes | Accounts sharing the PC (hardware tokens) with a banned one are banned too |
| Screenshot before ban | yes | Needs screenshot-basic |
| Kicks until ban | 3 | Kicks for the same detection within 24 h that become a ban; 0 = off |
| Generic message | yes | The punished player doesn't see which detection it was |
| Banned on another BlackShield server | Warn | Players with an active ban on another Network server: Nothing / Alert staff / Kick |
| Appeal link | — | Shown in the ban message (e.g. your Discord) |
#Joining the server
Panel → Configuration → Settings → Connection (or Config.Connection):
| Option | Default | What it does |
|---|---|---|
| Duplicate license | yes | Refuses the same Rockstar account connected twice |
| Require Discord | no | No Discord open = can't join |
| Alphanumeric names only | no | Refuses names with symbols |
| Forbidden names | yes | Words from the list and HTML/code in names |
| Minimum tokens | 2 | Fewer hardware tokens = possible spoofer |
| Block VPN / proxy | no | Uses proxycheck.io (optional key, see below) |
| Max threat | 0 | 0 = off. Join score (no Discord +20, first join +15, few tokens +30, old bans +25 each) above this can't join |
| Connections per minute | 8 | Attempts per IP/license per minute (flood); 0 = off |
For your own rules (e.g. "new account with low trust can't join", "no Discord can't join"), use the panel's Security rules screen: conditions on trust, playtime, Discord/Steam account age, ping, etc., on join or while playing.
#World
| Option | What it does |
|---|---|
| Cancel all explosions | For servers without explosions (PvP/calm RP) |
| Cancel all fire | Same for fire created by players |
#Block lists
Each Configuration tab has editable lists: vehicles, peds, objects, weapons, projectiles, explosions, particles, player models, menu commands/textures/globals, honeypot events, state bag keys, forbidden names and words. Add or remove items and save.
#Staff
- Staff are analysed too (
Config.StaffBypass = false): staff can cheat as well. Only admin tools (godmode/noclip/invisible from a menu that callsSetStaffTool), txAdmin menu actions (recognised automatically) and players on the panel whitelist are exempt. - The framework admin groups (
Config.StaffGroups, defaultgod,admin,superadmin) open the panel with everything. See Permissions.
#Recommended convars
BlackShield warns in the console (and in the panel) if any is missing:
set onesync on
set sv_filterRequestControl 2
set sv_enableNetworkedSounds false
set sv_enableNetworkedPhoneExplosions false
set sv_enableNetworkedScriptEntityStates false
set sv_scriptHookAllowed false
set sv_pureLevel 1
setr sv_stateBagStrictMode trueWarning
Don't use sv_entityLockdown relaxed or strict. FXServer then blocks vehicles and objects your scripts create client-side (garages, dealerships, admin menus). BlackShield already catches entities created by menus.
#Discord
In server_config.lua, one webhook per category (empty = not sent):
ServerConfig.Webhooks = {
main = 'https://discord.com/api/webhooks/...', -- detections and warnings
bans = '',
entities = '',
explosions = '',
weapons = '',
connections = '',
unbans = '',
public = '', -- only "Player X was banned by BlackShield", for a public channel
}
ServerConfig.ShowIp = false -- show IPs in Discord logs
ServerConfig.MentionRole = '' -- e.g. '<@&123456789>' on critical detections
ServerConfig.LogoUrl = '' -- embed thumbnail#Log level
Config.Logging.level in config.lua controls what goes to the console and to Discord (the database and the panel always keep everything, for logDays):
| Level | Console | Discord |
|---|---|---|
minimal (default) | Kicks and bans only | Bans, kicks, unbans, staff warnings and security |
normal | + punishing detections | + every detection except log-only ones |
full | Every detection | Everything, including joins/leaves |
In Dev Mode the console always shows every detection. To investigate a problem, set full for a few days and go back to minimal.
#Optional keys
All in server_config.lua:
| Key | What for |
|---|---|
ProxyCheckKey | Anti-VPN (proxycheck.io). No key: 100 checks/day; free key: 1000/day |
SteamApiKey | Steam account age in trust and join threat (free key at steamcommunity.com/dev/apikey) |
MenuScan | Read the screen looking for mod menus: gemini (recommended), anthropic or ocrspace (free, less accurate). Needs screenshot-basic |
DiscordBotToken | Discord avatars on Network profiles and in the player sheet |
#Screenshots and clips
With screenshot-basic:
- Verified screenshots (
Config.ShotCheck) — BlackShield draws marks on the screen and checks they appear in the capture: catches menus that swap or block screenshots. Runs randomly (~30 min per player) and after menu signals. - Clips (
Config.Clips) — several captures in a row, shown in the panel as a video, on kicks, bans and serious detections.
Something unclear? Open a ticket.