FusionShield
Dashboard
SetupConfiguration

Configuration

Dashboard settings and the init.lua file.

Most settings live in the dashboard under Configuration. Changes reach the server within about 15 seconds, no restart needed. Everything you do not change in the dashboard is taken from init.lua in the resource.

#In the dashboard

  • Turn each detection on or off
  • Choose the action per detection: Ban, Kick or Warn
  • Edit blacklists (weapons, vehicles, peds, objects, explosions)
  • Set maximum health and armour
  • Allowed zones and lockdown mode
  • Whitelist scripts: resources allowed to spawn vehicles or teleport players

#init.lua

init.lua is the main config file of the resource. The most useful options:

lua
-- Console message colour (txAdmin)
Config.ConsoleColor = "#4599FF"

-- Pull settings from the dashboard every 15 seconds
Config.PanelSync = { Enabled = true, IntervalSeconds = 15 }

-- Record a 15 s video before every ban
Config.RecordBanVideo = true

-- After a ban the player stays a few seconds in an empty world, then is dropped
Config.BanIsolation = { Enabled = true, Seconds = 5 }

-- Server console in the dashboard and which commands it may run
Config.WebConsole = {
    Enabled = true,
    AllowCommands = true,
    Commands = { "status", "say", "refresh", "ensure", "start", "stop", "restart", "clientkick", "version" },
}

-- Automatic updates
Config.Updates = { Enabled = true, AutoInstall = true }
Warning

init.lua is loaded on clients too. Never put secrets such as webhook URLs or passwords into it.

#Exports for your scripts

Your own resources can pause a detection for a moment, for example during a scripted teleport:

lua
exports['FusionShield']:SetTeleportBypass(5000)   -- milliseconds
exports['FusionShield']:SetNoclipBypass(30000)
exports['FusionShield']:SetGodmodeBypass(10000)
exports['FusionShield']:SetStaminaBypass(60000)
exports['FusionShield']:SetFreecamBypass(true)     -- call again with false when done

Log your own admin actions into the dashboard:

lua
exports['FusionShield']:LogAdminAction(source, 'Give item', 'bread x5')