From fdbe0839f7bf77c1e2fb9d14b579bb3d3dc8e53f Mon Sep 17 00:00:00 2001 From: Zaps6000 <122732007+Zaps6000@users.noreply.github.com> Date: Sun, 12 Nov 2023 01:37:51 -0600 Subject: [PATCH] Update main.lua --- server/main.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/main.lua b/server/main.lua index 9465073..a680039 100644 --- a/server/main.lua +++ b/server/main.lua @@ -151,7 +151,6 @@ if GetResourceState('qb-core') ~= 'missing' then QBCore = exports['qb-core']:GetCoreObject() UseQB = true end -if UseEsx then AddEventHandler("weaponDamageEvent", function(sender, data) if UseEsx and Config.Antitaze.Enabled then local _src = sender @@ -165,10 +164,8 @@ AddEventHandler("weaponDamageEvent", function(sender, data) end end end) -end -if UseQB then AddEventHandler("weaponDamageEvent", function(sender, data) - if UseEsx and Config.Antitaze.Enabled then + if UseQB and Config.Antitaze.Enabled then local _src = sender local xPlayer = QBCore.Functions.GetPlayer(_src) if xPlayer ~= nil and not Config.Antitaze.WhitelistedJobs[xPlayer.job.name] and data.weaponType == 911657153 or data.weaponType == joaat("WEAPON_STUNGUN") then @@ -178,4 +175,3 @@ AddEventHandler("weaponDamageEvent", function(sender, data) end end end) -end