[Release] AntiCheese Anticheat

I’ve installed this alongside EasyAdmin and both the scripts are working, but anticheat isn’t warning or banning people.

I’ve tried kicking/banning from the server with EasyAdmin and that worked perfectly. I’ve given myself a blacklisted weapon, and it removes all of my weapons as intended. I can also see the health function work when it takes the -2hp.

Any ideas as to why it’s not dropping people and banning them?

does this stop people from selling bmx’s for the price of an x-proto ?

1 Like

A modder managed to blow up my server. Suggestions on prevention?

@Vladimir_Putin same with me. also how do i disable components teleport/noclip?

No, No it doesn’t. :frowning:

because it doesnt exist to fix what other developers fucked up.

sadly theres not really a way to check who created explosions or if they are legitimate, so there isnt any protection against that for now.

This Service has been terminated, if you are looking for a specific file, please contact admin@furfag.de

Anti Explosive Weapon:

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

put it in a loop. :cowboy_hat_face:

Hi,

I’ve tried very silly edit, but nothing’s going on. My idea was to ban straight away non whitelisted persons (such as admins) for just obtaining blacklisted weapons. If someone would join my server and there is no chance how to get eg. a rail gun, I would like them got banned right away.

Could someone help me on this, please? I think I am just too tired atm -.-

Edit.:

This works for bans

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(5000)
		for _,theWeapon in ipairs(BlacklistedWeapons) do
			Wait(1)
			if HasPedGotWeapon(PlayerPedId(),GetHashKey(theWeapon),false) == 1 then
					--RemoveAllPedWeapons(PlayerPedId(),false)
					--TriggerServerEvent("banCheater", source,"Cheating")
					TriggerServerEvent("AntiCheese:WeaponFlag", weapon )
			end
		end
	end
end)

Unfortunately, it gives no notification on Discord as for Noclipping, for example. This would be highly desirable, as I would like to know about every scum trying to exploit the server. I believe I’ve overlooked something here. Any corrections, please?

I have no idea how to test this… :innocent:

Should I just put it into the client part (anywhere)?

you need ESX !

here a exemple with a not flag admins…

client:
https://i.gyazo.com/6278a8a05afbf89f5b390a4bb46ee9cd.png

server:
https://i.gyazo.com/874f203f34929e570d1afe0c0f3f86bb.png

Not working…

https://pastebin.com/SwhsR0d5

I’ve figure it out:

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(5000)
		for _,theWeapon in ipairs(BlacklistedWeapons) do
			Wait(1)
			if HasPedGotWeapon(PlayerPedId(),GetHashKey(theWeapon),false) == 1 then
					--RemoveAllPedWeapons(PlayerPedId(),false)
					TriggerServerEvent("AntiCheese:WeaponFlag", weapon )
			end
		end
	end
end)

It have some issues, It constantly gives that notification type of thing on the mini-radar like you take damage. It happens constantly, idk how to explain.

It feels like we are taking damage but we don’t however, it appears on the radar every minute and it kinda bothers me.

SO we tested out with this anticheat, everything worked except for the teleport cheat.

where should i put it TriggerEvent(“anticheese:SetComponentStatus”, “Teleport”, false)

I am having issues with webhooks, I have read through all the stuff I can find online. I’ve redacted some of the links and the identifiers. But am I missing something here? The webhooks are created in discord and in the room I want the moderator/admin outputs to go too.

I have problem with Anticheat

Error running system event handling function for resource anticheese: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: @anticheese/ac_s.lua:166: attempt to concatenate a nil value (global ‘license’)

how can i solve this ?

how to add anti cheat flag discord ? the video link error

Soo, I’ve found out that if I will blacklist weapon_stickybomb, it also disables weapon_fireextinguisher ?! :neutral_face:

Any ideas? I am spawning weapons with vMenu

1 Like