This is a basic anti-cheat system for detecting internal and external aimbots in RageMP. It uses server-side and client-side checks to monitor suspicious player behavior and provides a verification mechanism to kick unresponsive clients.
- Aimbot Detection: Analyzes player aiming behavior for unnatural "snapping" and other suspicious activities.
- Client Verification: Pings the client at regular intervals to ensure responsiveness. If a client fails to respond within a given time, it accumulates points, and after reaching the threshold, the player gets kicked.
- Customizable: Thresholds and detection logic can be adjusted to reduce false positives and fine-tune detection accuracy.
-
Aimbot Detection:
- Tracks the player's aiming angle and timing between shots.
- Detects unnatural aim snapping to targets.
- Flags players for suspicious behavior and broadcasts warnings or kicks if necessary.
-
Client Verification:
- Server sends periodic "ping" requests to the client.
- If the client doesn't respond within a set time, the player receives a point.
- After accumulating 3 points in 10 minutes, the player gets kicked for non-responsiveness.
- Download the files from the repository or grab the ZIP file from the releases.
- Place the
server_anticheat.js
on your RageMP server in the appropriate scripts directory. - Add
client_anticheat.js
to your client package to ensure proper verification and responsiveness. - Customize the detection thresholds and ping intervals as needed.
- The server-side script automatically runs and monitors player behavior.
- The client-side script listens for verification pings and responds.
- Adjust the detection sensitivity and ping intervals as per your server’s requirements.
mp.events.add('playerWeaponShot', (player, targetPosition, targetEntity) => {
const timeNow = Date.now();
// ...Aimbot detection logic...
});
This project is licensed under the MIT License - see the LICENSE file for details.