Anti-Tackle Script for RedM
Prevent running tackles and unwanted player interactions on your server!
π Description
This lightweight script detects whether a player is running or sprinting and automatically disables all tackle, grapple, and melee-related controls when they are near another player. Perfect for RP servers that want to prevent tackle abuse and chaotic PvP situations.
β¨ Features
-
β Running Detection - Monitors if the player is running or sprinting
-
β Proximity-Based Blocking - Only activates when near other players
-
β Full Control Blocking - Disables all tackle, grapple, hogtie, and melee inputs
-
β Configurable Radius - Adjust detection distance via config
-
β Debug Mode - Optional on-screen text for testing
-
β Optimized Performance - Only checks active players, not NPCs
-
β No Dependencies - Standalone resource, works out of the box
-
β Easy Configuration - Simple config.lua file
βοΈ Configuration
lua
Config.ShowText = true -- Enable/disable debug text
Config.WarningText = "BLOCKING TACKLE" -- Warning message
Config.ProximityRadius = 5.0 -- Detection radius (meters)
π¦ What's Included
-
client.lua - Main client-side logic
-
config.lua - Easy configuration file
-
fxmanifest.lua - Resource manifest
π§ Installation
-
Place
af-antitacklein your resources folder
-
Add
ensure af-antitackleto your server.cfg
-
Configure settings in
config.lua
-
Restart your server
π¬ Support
Join our Discord for support and updates: []