[vRP] [ESX] AntiCheat for FiveM

i change the code, and only see 1, i need to declare the config.pedthreshodl?

Thanks this anti-cheat is good

for ESX please.

2 Likes

Is there a reason there are like four threads running with a Wait of 500? I don’t think I see any reason why they couldn’t all be in the same thread since it’s the same wait time.

I’d also recommend using decors to check vehicles, as another anticheat release did, because hackers could still spawn non-blacklisted cars as far as I can tell.

where is this? anticheat.settings

will be add in 1.7.4 version

1 Like

Hi guys… why all on my server can put /ac and disable the AC?? i want only admin can disable…

Hi bro.
use this in HG_AntiCheat/server.lua

RegisterCommand("ac", function(source)
    local user_id = vRP.getUserId({source})	
	local player = vRP.getUserSource({user_id})
	local name = GetPlayerName(source)
	local cfg = getConfig()
    if vRP.hasPermission({user_id, "anticheat.settings"}) then
		TriggerClientEvent("HG_AntiCheat:Toggle", -1, 1)
    else
		vRPclient.notifyPicture(source,{"CHAR_LESTER",1,"HG_AntiCheat",false,"You do not have access to the settings"})
    end
end)

How to use “Config.webhookban” and “Config.webhookunban”?

This should be closed… The anticheat don’t work at all.

1 Like

I agree. Not really sure what its suppose to do, but it doesnt kick or ban anyone for spawning shit

bro. wait new version =))

When?

1 Like

I just hope the new version can ban explosive weapon because alot of hackers do it…

Can’t get this to work at all

local ped = PlayerPedId()
local unarmed = -1609580060
local meleeHash = -728555052
local pistolHash = 416676503
local subgunHash = -957766203
local shootgunHash = 860033945
local rifleHash = 970310034
local snipHash = -1212426201
local weaponHash = GetSelectedPedWeapon(ped)
local wgroup = GetWeapontypeGroup(weaponHash)
local dmg = GetWeaponDamageType(weaponHash)

if wgroup == unarmed or wgroup == meleeHash then
if dmg ~= 2 then
TriggerServerEvent(‘AntiCheats:flag’, “Melee Explosif”)
end
elseif wgroup == pistolHash or wgroup == subgunHash or wgroup == shootgunHash or wgroup == rifleHash or wgroup == snipHash then
if dmg ~= 3 then
TriggerServerEvent(‘AntiCheats:flag’, “Weapon Explosif”)
end
end

1 Like

Hi friend, I really need your help.

I wanted to disable AntiCheat just for SuperAdmin, how do I do this?

and I’m also having problems transforming myself into some animals and taking out some weapons … I want to leave all kinds of weapons released and some animals. my server is ESX

2 Likes
RegisterCommand("ac", function(source)
    local user_id = vRP.getUserId({source})	
	local player = vRP.getUserSource({user_id})
	local name = GetPlayerName(source)
	local cfg = getConfig()
    if vRP.hasPermission({user_id, "anticheat.settings"}) then
		TriggerClientEvent("HG_AntiCheat:Toggle", -1, 1)
    else
		vRPclient.notifyPicture(source,{"CHAR_LESTER",1,"HG_AntiCheat",false,"You do not have access to the settings"})
    end
end)

add premission anticheat.settings to what group you want

I replace the anticheat.settings by superadmin?

Explain to me how you do it

My server is ESX…

#fckcheater thx for share!