qbcore-framework / qb-anticheat

Anticheat System For QB-Core
GNU General Public License v3.0
30 stars 116 forks source link

Client-side detections improved #32

Closed Blitoka33 closed 2 years ago

Blitoka33 commented 2 years ago

I improved client side detections. I added an antigodmode system, and AntiDUIMenu system, which can detect some lua mod menus, and a menu style checker. I removed antiresourcestop cause it doesn't do anything except blocking admins from restarting qb-anticheat, but it didn't block any resource stopper cheats, resource stopper cheats doesn't trigger onResourceStop and onClientResourceStop events.

milotiro95 commented 2 years ago

Nice update but is it possible to have a whitelist for staff for not spamming the discord bot please ? I think I had it done if you want to modify your code :

if Config.AntiGodMode.Check1 then
            if not IsPlayerDead(PlayerId()) and group == Config.Group then
                if GetPlayerInvincible_2(PlayerId()) then
                    TriggerServerEvent("qb-log:server:CreateLog", "anticheat", "Joueur signalé! GodMode", "red", "** @everyone " ..GetPlayerName(player).. "** J'ai essayé d'utiliser GodMode. (Méthode 1)")
                    flags = flags + 1
                end
            end
        end
        if Config.AntiGodMode.Check2 then
            if not IsPlayerDead(PlayerId()) and group == Config.Group then
                local bull, coll, steam, p7, dr = GetEntityProofs(PlayerPedId())
                if bull ~= 0 and coll ~= 0 and steam ~= 0 and p7 ~= 0 and dr ~= 0 then
                    TriggerServerEvent("qb-log:server:CreateLog", "anticheat", "Joueur signalé! GodMode", "red", "** @everyone " ..GetPlayerName(player).. "** J'ai essayé d'utiliser GodMode. (Méthode 2)")
                    flags = flags + 1
                end
            end
        end
Blitoka33 commented 2 years ago

Nice update but is it possible to have a whitelist for staff for not spamming the discord bot please ? I think I had it done if you want to modify your code :

if Config.AntiGodMode.Check1 then
            if not IsPlayerDead(PlayerId()) and group == Config.Group then
                if GetPlayerInvincible_2(PlayerId()) then
                    TriggerServerEvent("qb-log:server:CreateLog", "anticheat", "Joueur signalé! GodMode", "red", "** @everyone " ..GetPlayerName(player).. "** J'ai essayé d'utiliser GodMode. (Méthode 1)")
                    flags = flags + 1
                end
            end
        end
        if Config.AntiGodMode.Check2 then
            if not IsPlayerDead(PlayerId()) and group == Config.Group then
                local bull, coll, steam, p7, dr = GetEntityProofs(PlayerPedId())
                if bull ~= 0 and coll ~= 0 and steam ~= 0 and p7 ~= 0 and dr ~= 0 then
                    TriggerServerEvent("qb-log:server:CreateLog", "anticheat", "Joueur signalé! GodMode", "red", "** @everyone " ..GetPlayerName(player).. "** J'ai essayé d'utiliser GodMode. (Méthode 2)")
                    flags = flags + 1
                end
            end
        end

I will do it soon!