An SQL ban system that preloads data on server start and keeps bans in memory for fast checks.
- mysql-async or oxmysql
- One framework: es_extended, qbx_core, or qbox_core
- Download the .zip from this repository.
- Extract it with your favorite program.
- Copy the resource to your resources folder.
- Rename Folder to
bansql - Add
ensure bansqlto yourserver.cfg. - Configure options in
config.lua(language, permissions, webhook, ForceSteam).
- Allowlist control:
Config.AntiCheatBridgeUseAllowList(true = enforce allowlist, false = allow any server resource). - Allowlist entries:
Config.AntiCheatBridgeAllowedResources. - Screenshots:
Config.AntiCheatScreenshotSaveToFileonly controls file saving; the webhook still receives the screenshot when false.
Add your anticheat resource name to Config.AntiCheatBridgeAllowedResources (or disable allowlist).
Server-side usage:
exports["bansql"]:addBan(playerId, "Cheating")
exports["bansql"]:takeScreenshot(playerId)
- The update checker prints the latest release changelog to the console when a newer version is found.
- The Discord webhook notification also includes the changelog (truncated).
ban <id> <days> <reason>: Ban an online player.unban <steam name>: Unban a player by name.banhistory <steam name|index>: Show ban history by name or index.banreload: Reload BanList and BanListHistory.
sqlbanmenu: Open the BanSql admin UI (search/recent/history/ban flow).sqlban <id> <days> <reason>: Ban an online player.sqlunban <steam name>: Unban a player by name.sqlbanhistory <steam name|index>: Show ban history by name or index.sqlbanreload: Reload BanList and BanListHistory.
daysset to0means permanent.
- Alex Garcio https://github.com/RedAlex
- Alain Proviste https://github.com/EagleOnee
- Aiko-Suzuki https://github.com/Aiko-Suzuki
- Zeemahh https://github.com/Zeemahh
Un systeme de ban SQL qui precharge les donnees au demarrage et garde les bans en memoire pour des verifications rapides.
- mysql-async ou oxmysql
- Un framework : es_extended, qbx_core, ou qbox_core
- Telechargez le .zip depuis ce depot.
- Extrayez-le avec votre programme favori.
- Copiez la ressource dans votre dossier resources.
- Renommez le dossier en
bansql. - Ajoutez
ensure bansqldans votreserver.cfg. - Configurez les options dans
config.lua(langue, permissions, webhook, ForceSteam).
- Controle de la whitelist :
Config.AntiCheatBridgeUseAllowList(true = applique la liste, false = autorise toute ressource serveur). - Liste autorisee :
Config.AntiCheatBridgeAllowedResources. - Captures d'ecran :
Config.AntiCheatScreenshotSaveToFilene gere que la sauvegarde fichier ; le webhook recoit quand meme la capture si false.
Ajoutez le nom de votre ressource anticheat dans Config.AntiCheatBridgeAllowedResources (ou desactivez la whitelist).
Utilisation cote serveur :
exports["bansql"]:addBan(playerId, "Cheating")
exports["bansql"]:takeScreenshot(playerId)
- Le check d'update affiche le changelog de la derniere release en console quand une version plus recente est detectee.
- La notification Discord inclut aussi le changelog (tronque).
ban <id> <jours> <raison>: Ban un joueur en ligne.unban <nom steam>: Deban un joueur par nom.banhistory <nom steam|index>: Historique des bans par nom ou index.banreload: Recharge BanList et BanListHistory.
sqlbanmenu: Ouvre l'UI admin BanSql (recherche/derniers connectes/historique/ban).sqlban <id> <jours> <raison>: Ban un joueur en ligne.sqlunban <nom steam>: Deban un joueur par nom.sqlbanhistory <nom steam|index>: Historique des bans par nom ou index.sqlbanreload: Recharge BanList et BanListHistory.
joursa0signifie permanent.
- Alex Garcio https://github.com/RedAlex
- Alain Proviste https://github.com/EagleOnee
- Aiko-Suzuki https://github.com/Aiko-Suzuki
- Zeemahh https://github.com/Zeemahh