Configuration

The config.lua file contains all configurable options for Guardex. This file is intentionally left unencrypted to allow for easy customization.

General Settings

-- General Settings
Config.RequireSteam = true  -- Require players to have Steam running
Config.Enabled = true
Config.AdminGroups = {'admin', 'superadmin'} -- Groups that can access the admin panel
Config.BanIDPrefix = "GX-" -- Prefix for ban IDs
Config.AppealURL = "guardex.fun/unban" -- URL for ban appeals
Config.DebugMode = false -- Enable debug mode (allows banning admins for testing)

Detection Settings

-- Detection Settings
Config.Detections = {
   -- Core Detections
   VehicleSpawn = true,           -- Detect unauthorized vehicle spawning
   ObjectSpawn = true,            -- Detect unauthorized object spawning
   PedSpawn = true,               -- Detect unauthorized ped spawning
   SpeedHack = true,              -- Detect player speed modifications
   Teleport = true,               -- Detect unauthorized teleportation
   HeightCheck = true,            -- Detect players going above maximum height
   NoClip = true,                 -- Detect noclip/wallhack
   GodMode = true,                -- Detect god mode/invincibility
   InvisibilityCheck = true,      -- Detect player invisibility
   WeaponModification = true,     -- Detect weapon modifications
   Spectating = true,             -- Detect unauthorized spectating
   FreeCam = true,                -- Detect freecam usage
   ExplosionSpam = true,          -- Detect explosion spam
   NetworkEventMonitoring = true, -- Monitor network events
   ResourceMonitoring = true,     -- Monitor resource starts/stops
   LuaInjection = true,           -- Detect Lua code injection
   MemoryScan = true,             -- Scan memory for cheat signatures
   DLLInjection = true,           -- Detect DLL injection
   
   -- Enhanced Detections
   SuperJump = true,              -- Detect super jump modifications
   FastRun = true,                -- Detect fast run speed modifications
   AirBreak = true,               -- Detect air break (floating/flying without vehicles)
   WalkOnWater = true,            -- Detect walking on water
   AntiRagdoll = true,            -- Detect anti-ragdoll modifications
   AntiHeadshot = true,           -- Detect anti-headshot modifications
   PlayerCoordManipulation = true, -- Detect player coordinate manipulation
   
   -- Vehicle Detections
   VehicleGodMode = true,         -- Detect vehicle god mode
   VehicleSpeedHack = true,       -- Detect vehicle speed modifications
   VehiclePowerMultiplier = true, -- Detect vehicle power/torque multipliers
   VehicleGravityModifier = true, -- Detect vehicle gravity modifications
   VehicleHandlingModifier = true, -- Detect vehicle handling modifications
   VehicleBoostHack = true,       -- Detect infinite boost/nitro
   VehicleCollisionBypass = true, -- Detect vehicle collision bypass
   VehicleFlyHack = true,         -- Detect vehicle fly hacks
   
   -- Weapon Detections
   InfiniteAmmo = true,           -- Detect infinite ammo
   NoRecoil = true,               -- Detect no recoil modifications
   NoSpread = true,               -- Detect no spread modifications
   RapidFire = true,              -- Detect rapid fire modifications
   ExplosiveAmmo = true,          -- Detect explosive ammo modifications
   DamageModifier = true,         -- Detect damage modifier
   AimAssist = true,              -- Detect aim assist/aimbot
   TriggerBot = true,             -- Detect trigger bot
   WeaponRangeModifier = true,    -- Detect weapon range modifications
   
   -- Visual Detections
   ESPDetection = true,           -- Detect ESP (player/entity highlighting)
   WallhackDetection = true,      -- Detect wallhack
   ThermalVisionHack = true,      -- Detect thermal vision hacks
   NightVisionHack = true,        -- Detect night vision hacks
   RadarHack = true,              -- Detect radar/minimap hacks
   NametagsModifier = true,       -- Detect nametag modifications
   
   -- Network Detections
   EventBlacklist = true,         -- Block blacklisted events
   EventFloodProtection = true,   -- Protect against event flooding
   ResourceInjectionDetection = true, -- Detect resource injection
   ResourceHashVerification = true, -- Verify resource file hashes
   NetworkEntityOwnershipCheck = true, -- Check entity ownership
   NetworkEntityFlood = true,     -- Detect entity flooding
   
   -- Advanced Detections
   MenuDetection = true,          -- Detect known mod menu patterns
   ExecutableDetection = true,    -- Detect known cheat executables
   ScreenshotVerification = true, -- Verify screenshots for cheats
   AntiScreenshotBypass = true,   -- Detect screenshot bypass methods
   MemoryPatternScan = true,      -- Scan memory for cheat patterns
   AntiAttachmentExploit = true,  -- Prevent attachment exploits
   AntiParticleSpam = true,       -- Prevent particle effect spam
   AntiClearPedTasks = true,      -- Prevent clear ped tasks exploits
   AntiBlips = true,              -- Detect unauthorized blip creation
   
   -- System Integrity
   FileIntegrityCheck = true,     -- Check file integrity
   ClientIntegrityCheck = true,   -- Check client integrity
   AntiVPNCheck = true,           -- Check for VPN usage
   HWIDSpooferDetection = true,   -- Detect hardware ID spoofers
   VMDetection = true,            -- Detect virtual machines
   EmulatorDetection = true       -- Detect emulators
}

Auto-Ban Settings

-- Auto-ban settings
Config.AutoBan = {
   Enabled = true,
   Duration = 2592000, -- 30 days in seconds
   Types = {
       ["Lua Injection"] = true,
       ["DLL Injection"] = true,
       ["Memory Modification"] = true,
       ["Weapon Damage Modification"] = true,
       ["Military Vehicle Spawn"] = true,
       ["Suspicious Vehicle Spawn"] = true,
       ["Blacklisted Weapon"] = true,
       ["Blacklisted Object"] = true,
       ["Rocket Launcher"] = true,
       ["Menu Detection"] = true,
       ["ESP Detection"] = true,
       ["Wallhack Detection"] = true,
       ["Aimbot Detection"] = true,
       ["Infinite Ammo"] = true,
       ["Rapid Fire"] = true,
       ["Explosive Ammo"] = true,
       ["Resource Injection"] = true,
       ["Network Entity Flood"] = true,
       ["Event Blacklist"] = true,
       ["Anti Screenshot Bypass"] = true
   }
}

Auto-Kick Settings

-- Auto-kick settings
Config.AutoKick = {
   Enabled = true,
   Types = {
       ["Suspicious Explosion"] = true,
       ["No Clip"] = true,
       ["Speed Hack"] = true,
       ["Blacklisted Ped"] = true,
       ["Super Jump"] = true,
       ["Fast Run"] = true,
       ["Air Break"] = true,
       ["Vehicle Fly Hack"] = true,
       ["Vehicle Speed Hack"] = true,
       ["Vehicle God Mode"] = true,
       ["No Recoil"] = true,
       ["No Spread"] = true,
       ["Anti Particle Spam"] = true,
       ["Anti Clear Ped Tasks"] = true
   }
}

Whitelist Settings

-- Whitelist Settings
Config.Whitelist = {
   Vehicles = {
       'adder',
       'zentorno',
       'police',
       'police2',
       'police3',
       'ambulance',
       'firetruk'
   },
   -- Military vehicles blacklist (these will trigger auto-ban)
   MilitaryVehicles = {
       'hydra',
       'lazer',
       'rhino',
       'apc',
       'insurgent',
       'insurgent2',
       'insurgent3',
       'barrage',
       'khanjali',
       'trailersmall2', -- Anti-aircraft trailer
       'chernobog',
       'scarab',
       'scarab2',
       'scarab3',
       'halftrack',
       'minitank',
       'valkyrie',
       'valkyrie2',
       'savage',
       'hunter',
       'akula',
       'annihilator',
       'buzzard',
       'buzzard2',
       'cargobob',
       'cargobob2',
       'cargobob3',
       'cargobob4'
   },
   Objects = {
       'prop_roadcone01a',
       'prop_barrier_work05',
       'prop_toolchest_01'
   },
   Peds = {
       'a_m_y_skater_01',
       'a_m_y_skater_02',
       's_m_y_cop_01',
       's_m_m_paramedic_01'
   },
   -- Admin whitelist by identifier
   Admins = {
       -- Format: identifier = true
       ["steam:76561199564102185"] = true,
       -- Example: ["discord:123456789012345678"] = true
   }
}

Webhook Settings

-- Webhook Settings
Config.Webhooks = {
   Enabled = false, -- Set to true after configuring webhooks
   PlayerConnect = {
       Enabled = false,
       URL = "" -- Your Discord webhook URL
   },
   Bans = {
       Enabled = false,
       URL = "" -- Your Discord webhook URL
   },
   Detections = {
       Enabled = false,
       URL = "" -- Your Discord webhook URL
   },
   TriggerMonitor = {
       Enabled = false,
       URL = "" -- Your Discord webhook URL
   }
}

Configuration Tips

  • It's recommended to start with the default configuration and adjust as needed.
  • Some detection methods may cause false positives depending on your server setup. Test thoroughly.
  • Always backup your configuration before making significant changes.
  • The whitelist sections are particularly important to customize for your server's needs.