Well, this anti cheat was my private anti cheat but some people stole it and sold it to others… so here it is.
Features:
- Check all vehicles & objects every x ms ( can be changed via convar, default 100ms, more on that later )
- Check all peds and remove those that have weapons drawn out. This is a feature that helps blocking cheaters from dropping f…king SWAT teams with RPGs… ( can be enabled, default = disabled )
Setting it up:
Well this is the hard part for non-experienced server owners because it requires some lua knowledge. I’ll give an example anyways.
Let’s say we have an ESX RP server up and running but hackers are pwning our ass via throwing planes at our head with mod menus such as Riptide or Matrix.
Go to: es_extended/client/functions.lua
Put these on top of the file:
local decorName = nil
local decorInt = nil
RegisterNetEvent("dexac:HereAreYourDecors")
AddEventHandler("dexac:HereAreYourDecors", function( decorN, decorI)
decorName = decorN
decorInt = decorI
end)
Find: ESX.Game.SpawnVehicle
Find: local vehicle = CreateVehicle(model, coords.x, coords.y, coords.z, heading, true, false)
Put to next line: DecorSetInt(vehicle,decorName,decorInt)
Find: ESX.Game.SpawnLocalVehicle
Find: local vehicle = CreateVehicle(model, coords.x, coords.y, coords.z, heading, true, false)
Put to next line: DecorSetInt(vehicle,decorName,decorInt)
Find: ESX.Game.SpawnObject
Find: local obj = CreateObject(model, coords.x, coords.y, coords.z, true, true, true)
Put to next line: DecorSetInt(vehicle,decorName,decorInt)
Find: ESX.Game.SpawnLocalObject
Find: local obj = CreateObject(model, coords.x, coords.y, coords.z, true, true, true)
Put to next line: DecorSetInt(vehicle,decorName,decorInt)
After editing the files that has CreateVehicle or CreateObject functions put DexAC folder to your resources folder and put “start DexAC” to the BOTTOM of your server.cfg. There are some convars you might want to change. Should you choose to use the convars, put them AT THE TOP of your server.cfg.
Another Example to help you implement this into any script: GO!
Convars:
set DexAC_DecorName "WohoooDecorNameee" # Decor Name, change this.
set DexAC_DecorINT "1337" # Decor Int, change this.
set DexAC_PedChecking "false" # or true -- Ped Checking
set DexAC_CheckSpeed "100" # checking interval ( its in ms ) -- it will drain cpus so be careful with this setting
Download:
Source Code ( C# )
Latest Release ( 1.0.0.0 )
Notes:
Thank you @Blumlaut, for giving this idea to me.
I won’t help you figure out how this works, get to work and learn some C#-Lua if you want to use this thing.
This may or may not be bad. I don’t know. I am just releasing this to stop people from selling this sh*tty 50 lines of code.
Also feel free to send pulls or open issues on Github.
Discord: Dexelir#1019