Codex AntiCheat is a lightweight, server-side driven anticheat for RedM focused on real in-game behaviour, not fragile pattern checks.
It runs completely in the background and flags (or kicks) suspicious players while giving staff clear logs through Discord.
This Version contains the Fully setup UI PANEL and more strong entities detection.
Key Features
🔫 Combat & Aimbot Detection
Invisible “HoneyPot” bots around the player to detect external aimbots and silent-aim tools.
If your bullets consistently hit invisible NPCs, the system flags you.Headshot accuracy tracker – monitors headshot ratio over time.
Abnormally high ratios (configurable) are flagged as suspicious.Silent-aim / snap-aim detection using raycasts:
Compares the entity you’re actually aiming at with the entity that gets damaged.
If hits don’t line up with your crosshair, a flag is raised.
Long-distance kill checks – kills from unrealistic distance (>100m by default) are reported.
🛡️ God Mode & Health Exploit Protection
Detects players taking heavy damage without losing health.
Watches for over-health values (e.g. HP > 600) and flags godmode style buffs.
While a player is detected as invincible, Codex can:
Freeze the player and/or vehicle.
Disable firing.
Log the incident to Discord for staff review.
❤️ Heal & Revive Exploit Checks
Tracks health changes over time and detects:
Unauthorized heals (big HP jumps without server-granted bypass).
Unauthorized revives (coming back from death without allowed revive window).
Server can temporarily whitelist legit heals / revives (e.g. medics, commands) via events so staff tools still work.
🧭 Teleport / NoClip & Movement
Teleport-like movement detection:
Measures distance between checks and flags large jumps.
Confirmed noclip check:
Detects players spending a long time in the air with no ground below them.
“Fell under the map” detection to catch suspicious z-axis exploits.
🧬 Anti-Tamper & Resource Integrity
Tamper detection:
Monitors core LUA environment and basic debug hooks to spot injected code or manipulated globals.
Unauthorized resource scanner (whitelist-based):
Periodically scans running resources on the client.
Any non-whitelisted resource can be logged or used to auto-kick.
Native blocking:
Optionally disables sensitive natives client-side (e.g.
GiveWeaponToPed,SetEntityInvincible) to stop simple cheat scripts from working at all.
🐎 Entity & Object Protection
Server-side entityCreated hook:
Blocks blacklisted models (legendary animals, troll props, etc).
Per-player rate limiter for spawned entities (peds/objects) in a sliding time window.
Optional auto-kick when a player exceeds configured spawn limits.
Client-side scale & size checks:
Detects abnormal player and owned-NPC sizes (mini giants, tiny peds, etc).
Can auto-delete suspicious NPCs and log details.
⚙️ Event Flood & Exploit Traps
Global event spam detection:
Tracks how many events a player sends in a short window and can kick for event flooding.
Bait events:
Fake server events like
giveweapon,setadmin,reviveall, etc.Any cheat that triggers them immediately flags the player and can auto-kick.
🖥️ NUI DevTools / Menu Protection
Built-in protection against NUI DevTools injections:
Attempts to open your anticheat NUI in DevTools are logged and the player can be kicked.
Works together with your NUI callback to verify that the UI is not being spoofed.
📊 Logging, Dashboard & Discord Integration
Central server logger collects all anticheat flags.
Sends rich embeds to a configurable Discord webhook:
Player name & server ID
License, Steam & Discord identifiers
Reason for the flag
Optional banner & thumbnail images
Lightweight internal log buffer so staff can see recent detections at a glance.
Simple counters for:
Total detections
Bans in the last 7 days
Active players
Configuration
Everything is configured through a single shared config file:
Toggle each module:
AntiAimbot,TrackPlayerAccuracy,AntiGodMode,HealReviveChecker,RaycastChecker,AntiPlayerTeleport,TamperDetection,AntiResourceInjection,AntiEntities,DisableNatives,Antiscaleoverride, etc.
Set anticheat behaviour:
Drop players automatically or only log to Discord.
Event-spam limits (max events + time window).
Entity limits per player (peds, animals, objects, spawn rate window).
Min/Max allowed character size.
Whitelists:
Steam / license allowlist for NUI/DevTools protection.
Extensive resource whitelist so only your approved server scripts are allowed.
No recompilation is required – just adjust the Lua config and restart the resource.
Requirements
RedM server (fx_version
bodacious,rdr3game).Codex Core and its dependencies (used for client library / loading state).
A configured Discord webhook URL for log delivery.
Works alongside popular RedM frameworks and scripts (TPZ, VORP, Syn, etc.) – many are pre-whitelisted in the config.
Installation
Upload the
codex_anticheatfolder to your RedM resources.Add
ensure codex_anticheatto yourserver.cfgafter its required dependencies (e.g.codex_core).Edit
shared_anticheat_config.lua:Set your check method (Steam / license).
Add your staff / dev identifiers to the allowlist.
Paste your Discord webhook URL.
Adjust spawn limits, model blacklist and module toggles.
Restart the server and verify that flags appear in your Discord channel when testing.
What This Resource Is Not
This is not a magic “ban everyone” button.
Codex AntiCheat focuses on behaviour-based detection and giving staff good information so you can make the right decisions.No external database is required for basic use (SQL integration can be added if you want group checks).
Support
IF YOU HAVE ANY QUESTIONS BEFORE YOU BUY IT (PRE-PURCHASE FAQ ) PLEASE OPEN TICKET ON OUR DISCORRD!
If you need help with installation, configuration or adding new models / resources to the whitelist, please open a ticket in our Discord after purchase.
We are happy to help you tune the limits to fit your server’s playstyle.
Docs Page for developers :https://codexstudios.gitbook.io/codexstudios-store
Docs Page for Config : https://codexstudios.gitbook.io/codexstudios-store
Show Case Menu of BETA (NOT RELEASED YET):
https://streamable.com/vqa96i
Full Video Preview (coming soon REASON : WE ADD AN ANTICHEAT MENU )
EG: THIS IS A BETA VERSION AND CODEX STUDIOS WILL UPDATE AND PATCH THE RESOURUCE ALMOST EVERYDAY

