[HOTFIX] Add stungun, remove some unreliable messages[HOTFIX] Add stungun to anticheat

This commit is contained in:
hydrant
2021-04-11 22:39:40 +02:00
parent fbbc61a523
commit 1943c703c2

View File

@@ -23,7 +23,8 @@
-2084633992,
-1075685676,
-1786099057,
-1074790547
-1074790547,
-1569615261
]
mp.events.add("playerJoin", () => {
@@ -189,12 +190,12 @@
let Difference = Behaviour.subtractVector(Behaviour.pos, mp.players.local.position)
if (Math.abs(Difference.x) > 30 || Math.abs(Difference.y) > 30) {
if (Behaviour.isWalking()) {
mp.events.callRemote("CLIENT:CheatDetection", "Flyhack/Teleport")
//mp.events.callRemote("CLIENT:CheatDetection", "Flyhack/Teleport")
}
}
if (mp.players.local.vehicle) {
if (Behaviour.checkCarPos(25)) {
mp.events.callRemote("CLIENT:CheatDetection", "Vehicle Flyhack")
//mp.events.callRemote("CLIENT:CheatDetection", "Vehicle Flyhack")
}
if (Behaviour.VehicleFasterThan(250)) {
mp.events.callRemote("CLIENT:CheatDetection", "Vehicle Speedhack")